chore(deps): bump the npm_and_yarn group across 1 directory with 36 updates #123
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: Lint tests and sonar | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 8.17 | |
cache: 'npm' | |
- name: Run ci (install) | |
run: npm ci | |
- name: Run lint | |
run: npm run lint | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Run tests | |
run: make test-ci | |
- name: Upload Test Coverage | |
uses: actions/upload-artifact@v3 | |
with: | |
name: superbowleto-coverage | |
path: | | |
coverage/ | |
sonar: | |
name: Sonar | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Download Coverage | |
uses: actions/download-artifact@v3 | |
with: | |
name: superbowleto-coverage | |
path: | | |
coverage/ | |
- name: Override Coverage Source Path for Sonar | |
run: | | |
sed -i 's/\/superbowleto\/src\//src\//g' coverage/lcov.info | |
- name: Run Sonar | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |