Skip to content

Commit

Permalink
chore: add github workflow for lint, test and sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
ehrdi committed Aug 9, 2024
1 parent 3d63cd7 commit 42596f8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint_test_sonar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Quality Check (Lint, Test, Sonarcloud)
on:
push:
branches:
- main
pull_request:
branches:
- main
- develop
workflow_dispatch:
workflow_call:

jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Run Linting
run: yarn run lint
- name: Run Tests with Coverage
run: yarn run coverage
- name: Run SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 42596f8

Please sign in to comment.