Skip to content

Commit

Permalink
chore(client): setup gh ci checks for client app (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmstss authored Sep 2, 2024
1 parent 15160a8 commit 854bded
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/check-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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
10 changes: 6 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: "Nest Back-End format, lint and build checks"
name: "Nest Back-End CI checks"

on:
pull_request:
branches:
- '**'

push:
branches:
- stable
- unstable

paths:
- '*'
- 'src/**'
- 'test/**'
- '.github/workflows/check.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -34,7 +36,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci
run: npm ci --no-audit

- name: Check format
run: npm run format
Expand Down

0 comments on commit 854bded

Please sign in to comment.