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 930bf2a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/codeanalysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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: Build code
run: npm run build

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

0 comments on commit 930bf2a

Please sign in to comment.