Skip to content

Commit

Permalink
add: github action for verify build (#8)
Browse files Browse the repository at this point in the history
* add: github action for verify build

* fixing github acction

* fixing gh actions

* wip

* wip

* wip

* ...

* ...

* ...

* ...

* ...

* testing github action

* testing gh aciton
  • Loading branch information
ahmedcognite authored Jan 2, 2024
1 parent cfa65a5 commit fecca7d
Show file tree
Hide file tree
Showing 4 changed files with 147,545 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/verify-pr-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Verify PR build
on:
push:
branches:
# Change this if your primary branch is not main
- main
pull_request:
branches:
- main

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Cache node_modules
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install

- uses: nrwl/nx-set-shas@v3
# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track main origin/main

- run: npx nx format:check
- run: npx nx affected -t lint,build --parallel=3
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tmp

# dependencies
node_modules
.yarn
.yarn/cache

# IDEs and editors
/.idea
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Add files here to ignore them from prettier formatting
/dist
/coverage
/.nx/cache
/.nx/cache
/.yarn
Loading

0 comments on commit fecca7d

Please sign in to comment.