chore(client): setup gh ci checks for client app #2
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: "React Front-End CI checks" | |
on: | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- stable | |
- unstable | |
paths: | |
- 'client/**' | |
- '.github/workflows/*client.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci --prefix=client --no-audit | |
- name: Check format | |
run: npm run format --prefix=client | |
- name: Lint | |
run: npm run lint --prefix=client | |
- name: Build | |
run: npm run build --prefix=client |