Skip to content

Commit

Permalink
chore: add codeanalysis action with vitest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaspalma committed Aug 17, 2024
1 parent cac079b commit 903128b
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/codeanalysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Code analysis

on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main

jobs:
test-react-testing-library:
runs-on: ubuntu-latest
name: Run react testing library tests

strategy:
matrix:
node-version: [21.x]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4

- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm install

- name: Run tests
run: CI=true npm run test-coverage

0 comments on commit 903128b

Please sign in to comment.