Skip to content

Commit

Permalink
ci: improve workflows (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowlett-scottlogic authored Nov 2, 2022
1 parent 89052c4 commit 0b1992f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 29 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,18 @@ on:
jobs:
run-eslint:
name: Format
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 16.x
cache: 'npm'

- name: Install Node.js dependencies
run: npm ci

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,18 @@ on:
jobs:
run-eslint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 16.x
cache: 'npm'

- name: Install Node.js dependencies
run: npm ci

Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,17 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 16.x
cache: 'npm'

- name: Install Node.js dependencies
run: npm ci

Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,19 @@ jobs:
test-generator:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

node-version: 16.x
- name: Install Node.js dependencies
run: |
npm install
run: npm install

- name: test-generator
- name: Test generator
run: npm run test:defaultPath
continue-on-error: true
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0b1992f

Please sign in to comment.