Skip to content

Commit

Permalink
Running tests and static analysis,:
Browse files Browse the repository at this point in the history
  • Loading branch information
bsommardahl committed May 22, 2024
1 parent 50f8aa8 commit f2c2f29
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,51 @@ jobs:

- name: 😂 Lint code
run: cd frontend && npm run lint


test:
name: 🧪 Run Unit Tests
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'

- name: Install deps
run: cd frontend && npm i

- name: Run the unit tests
run: cd frontend && npm run test-ci

static-analysis:
name: 🔬 Run Static Code Analysis
needs: build
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: ./.github/codeql/codeql.config.yml

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'

- name: Install Deps
run: cd frontend && npm i

- name: Build
run: cd frontend && npm run build

# - name: Perform Analysis
# uses: github/codeql-action/analyze@v2

0 comments on commit f2c2f29

Please # to comment.