Skip to content

Commit

Permalink
Added unit testing for client via git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RupertJonesSA committed Sep 22, 2024
1 parent c192c1b commit 5583060
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,51 @@ on:
- "main"

jobs:

lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [21.x]

steps:
- name: Checkout
uses: actions/checkout@v2

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

- name: Install Dependencies
run: npm ci
working-directory: client/

- name: Lint with ESLint
run: npm run lint
working-directory: client/

tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [21.x]

steps:
- name: Checkout
uses: actions/checkout@v2
with:
node-version: ${{ matrix.node-version }}

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 20.17.0
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm ci
working-directory: client/

- name: Run tests
run: npm test
working-directory: client/

0 comments on commit 5583060

Please sign in to comment.