Skip to content

Commit

Permalink
CI: Add nrwl affect actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gum-Joe committed Oct 18, 2024
1 parent 9767136 commit e02e3d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
key: ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm ci
- uses: nrwl/nx-set-shas@v4

build:
runs-on: ubuntu-latest
Expand All @@ -63,6 +62,8 @@ jobs:
run: npx nx run-many -t build-local
- name: Prisma generate
run: npx nx run-many -t prisma-generate
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
- name: Build all
run: npx nx affected -t build build-local

Expand All @@ -81,6 +82,8 @@ jobs:
with:
path: node_modules
key: ${{ runner.os }}-nx-${{ hashFiles('package-lock.json') }}
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
- name: Run Linting
run: npx nx affected -t lint

Expand All @@ -103,6 +106,8 @@ jobs:
run: npx nx run-many -t build-local
- name: Prisma generate
run: npx nx run-many -t prisma-generate
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
- name: Test
run: npx nx affected -t test

Expand Down
3 changes: 1 addition & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,5 @@
"linter": "eslint"
}
}
},
"defaultBase": "origin/main"
}
}

0 comments on commit e02e3d7

Please sign in to comment.