Package updates 2024 #21
Workflow file for this run
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: PR Checks | |
on: | |
pull_request: | |
branches: | |
- main | |
# allows you to manually trigger this in GH actions | |
workflow_dispatch: | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
jobs: | |
Test_And_Audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install Packages | |
run: npm ci --ignore-scripts | |
- name: Audit | |
run: npm audit --audit-level=high | |
- name: Formatting | |
run: npm run pretty-check | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm run test | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
- name: Build | |
run: npm run build |