Performing static code analysis π #473
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: Check stage | |
run-name: Performing static code analysis π | |
on: | |
- push | |
- pull_request | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
env: | |
NODE_VERSION: 19 | |
steps: | |
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- run: echo "π‘ The ${{ github.repository }} repository has been cloned to the runner." | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'npm' | |
- name: Install npm dependencies | |
run: | | |
npm install | |
- run: echo "π₯οΈ The runner is now ready to test your code." | |
- name: Run lint check | |
run: | | |
npm run lint-check | |
- name: Run formatter check | |
run: | | |
npm run format-check | |
- run: echo "π This job's status is ${{ job.status }}." |