Skip to content

Commit

Permalink
ci: add build check for pr (#969)
Browse files Browse the repository at this point in the history
* ci: add build check for pr

* refactor: improve inflixDbClient code and disable fail-fast

---------

Co-authored-by: Mario <[email protected]>
  • Loading branch information
VmMad and msarcev authored Jan 19, 2024
1 parent 1498be6 commit e478172
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pr-build-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PR build check

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
build-check:
strategy:
fail-fast: false
matrix:
project: [api, client]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ matrix.project }}
steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "16"

- name: Install Dependencies
run: npm install

- name: Build Check
run: npm run build
4 changes: 0 additions & 4 deletions .husky/pre-push

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"setup:dev": "npm run clear && npm run prepare && npm run setup:client && npm run setup:api",
"clear": "rimraf api/node_modules api/dist client/node_modules client/build",
"dev": "concurrently 'cd api && npm run start-dev' 'cd client && npm run start'",
"pre-push": "concurrently 'cd api && npm run build-compile && npm run build-lint && npm run build-config' 'cd client && npm run build'",
"prepare": "husky install",
"format": "concurrently 'cd api && npm run format' 'cd client && npm run format'"
},
Expand Down

0 comments on commit e478172

Please sign in to comment.