This repository has been archived by the owner on May 1, 2024. It is now read-only.
Update README.md #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📥 Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: ⚙ Setup | |
uses: ./.github/actions/setup | |
with: | |
node_version: 20.x | |
- name: 🎈 Lint, test and build | |
run: | | |
pnpm nx affected --target=lint --parallel=3 | |
pnpm nx affected --target=test --parallel=3 --ci --code-coverage --coverageReporters=lcov | |
pnpm nx affected --target=build --parallel=3 | |
# - name: ⛳ SonarCloud Scan | |
# uses: SonarSource/sonarcloud-github-action@master | |
# if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |