Skip to content

Commit

Permalink
ci: update and improve ci workflow (#72)
Browse files Browse the repository at this point in the history
* ci: update actions and node version

* ci: use 'npm ci' instead of 'npm install'

* ci: run linter

* ci: run build
  • Loading branch information
mjkeaton authored Nov 19, 2024
1 parent d21e7b5 commit 3d66874
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,31 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['v22.11.0']

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
- name: Set up Node.js (${{ matrix.node-version }})
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install
run: npm ci

- name: Lint
run: npm run lint

- name: Run tests and generate coverage
run: npm run test -- --coverage

- name: Build
run: npm run build

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit 3d66874

Please sign in to comment.