-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(client): setup gh ci checks for client app
- Loading branch information
Showing
2 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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 | ||
|
||
- name: Test | ||
run: npm run test --prefix=client |
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