Skip to content

Commit

Permalink
#107 [API] [PLATFORM] Add build phase to CI (#120)
Browse files Browse the repository at this point in the history
* feat: add ci

* feat: detect code change & run action

* feat: disable ci web

* small adjustments

---------

Co-authored-by: Vygandas Pliasas <[email protected]>
  • Loading branch information
llong2195 and vygandas authored Dec 7, 2023
1 parent 6577927 commit fb7ecf0
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nx Affected CI
name: PR ALL Affected Test
on:
pull_request:
branches: [main]
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/pr_push_api_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'PR & Push API Build'
on:
pull_request:
branches:
- '*'
paths:
- 'libs/**'
- 'apps/api/**'
push:
branches:
- '*'
paths:
- 'libs/**'
- 'apps/api/**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: 'Install dependencies'
run: yarn install

- name: 'Build Api'
run: npx nx run api:build
36 changes: 36 additions & 0 deletions .github/workflows/pr_push_platform_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'PR & Push Platform Build'
on:
pull_request:
branches:
- '*'
paths:
- 'libs/**'
- 'apps/platform/**'
push:
branches:
- '*'
paths:
- 'libs/**'
- 'apps/platform/**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: 'Install dependencies'
run: yarn install

- name: 'Build Platform'
run: npx nx run platform:build

1 comment on commit fb7ecf0

@vercel
Copy link

@vercel vercel bot commented on fb7ecf0 Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.