Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marklundin authored Jan 23, 2025
1 parent f85915d commit 6e53950
Showing 1 changed file with 32 additions and 14 deletions.
46 changes: 32 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,43 @@ on:
branches: [ main ]

jobs:
lint:
name: Lint Code
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'

- name: Install dependencies
run: npm clean-install --progress=false --no-fund

- name: Run ESLint
run: npm run lint

unit-test-node:
name: Unit Test
runs-on: ubuntu-latest
timeout-minutes: 10
needs: lint # Ensure linting completes successfully first
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: npm clean-install --progress=false --no-fund
- name: Setup Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'

- name: Run ESLint
run: npm run lint
- name: Install dependencies
run: npm clean-install --progress=false --no-fund

- name: Run unit tests
run: npm test
- name: Run unit tests
run: npm test

0 comments on commit 6e53950

Please sign in to comment.