Skip to content

Commit

Permalink
ci: fix (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Oct 4, 2023
1 parent 67396b2 commit 6225f44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Pull Request Workflow

env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}

on:
pull_request:
push:
branches: [main]

jobs:
build:
Expand All @@ -15,7 +13,7 @@ jobs:
with:
fetch-depth: 0
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run build -- --base=remotes/origin/${{github.event.pull_request.base.ref}}
- run: npm run build

lint:
runs-on: ubuntu-latest
Expand All @@ -25,7 +23,7 @@ jobs:
fetch-depth: 0
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run prettier -- --check
- run: npm run lint -- --base=remotes/origin/${{github.event.pull_request.base.ref}}
- run: npm run lint

test:
runs-on: ubuntu-latest
Expand All @@ -34,4 +32,4 @@ jobs:
with:
fetch-depth: 0
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm test -- --base=remotes/origin/${{github.event.pull_request.base.ref}}
- run: npm test
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"ng": "ng",
"nx": "nx",
"start": "nx run-many --target serve --parallel --all",
"build": "nx affected --target build --configuration production",
"build": "nx run-many --target build --parallel=1 --configuration production",
"build:demo": "nx build demo",
"postbuild:demo": "cp ./dist/apps/demo/index.html ./dist/apps/demo/404.html",
"release": "nx affected --target release",
"test": "nx affected --target test",
"lint": "nx workspace-lint && nx affected --target lint",
"release": "nx run-many --target release --parallel=1",
"test": "nx run-many --target test",
"lint": "nx workspace-lint && nx run-many --target lint --parallel=1",
"prettier": "prettier --write '**/*.{js,ts,html,md,less,json}'",
"affected:apps": "nx affected:apps",
"affected:libs": "nx affected:libs",
Expand Down

0 comments on commit 6225f44

Please sign in to comment.