[Snyk] Security upgrade bootstrap from 4.6.2 to 5.0.0 #301
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 Code Style/Lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
client: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./client | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Clean install | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Check formatting | |
# run regardless of whether linting caught errors | |
if: ${{ success() || failure() }} | |
run: npm run style | |
server: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./server | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Clean install | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Check formatting | |
# run regardless of whether linting caught errors | |
if: ${{ success() || failure() }} | |
run: npm run style |