Skip to content

Commit f12e7f5

Browse files
committed
ci: Debug ci
1 parent 52ade84 commit f12e7f5

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

.github/actions/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ runs:
1313
with:
1414
path: |
1515
node_modules
16+
.nx
17+
.angular
1618
~/.cache/Cypress # needed for the Cypress binary
1719
key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('package-lock.json') }}
1820
- name: Npm install

.github/workflows/bump-version.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ jobs:
2727
run: npx nx affected -t test build --parallel=3 --exclude='json-api-front,json-api-server,json-api-server-e2e,json-shared-type,database,@nestjs-json-api/source'
2828
- name: Upload test coverage badge
2929
run: npx nx affected -t upload-badge --parallel=3 --exclude='json-api-front,json-api-server,shared-utils,json-api-server-e2e,json-shared-type,database,@nestjs-json-api/source'
30+
- name: Cache npm dependencies
31+
id: cache-dependencies-save
32+
uses: actions/cache/save@v4
33+
with:
34+
path: |
35+
.nx
36+
.angular
37+
key: ${{ steps.cache-dependencies-restore.outputs.cache-primary-key }}
3038
# env:
3139
# GIST_SECRET: ${{ secrets.GIST_SECRET }}
3240
# GIST_ID: ${{ secrets.GIST_ID }}
@@ -48,11 +56,7 @@ jobs:
4856
uses: actions/checkout@v4
4957
with:
5058
fetch-depth: 0
51-
- name: Setup Node.js
52-
uses: actions/setup-node@v4
53-
with:
54-
node-version: 20
55-
- name: Checkout and install
59+
- name: Npm install
5660
uses: ./.github/actions
5761
- name: Bump version
5862
run: |

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ jobs:
1717
uses: ./.github/actions
1818
# This line is needed for nx affected to work when CI is running on a PR
1919
- run: git branch --track main origin/master
20-
- run: npx nx affected -t lint test build --parallel=3 --exclude='json-api-front,json-api-server,json-api-server-e2e,shared-utils,json-shared-type,database'
20+
- name: Test and build
21+
run: npx nx affected -t lint test build --parallel=3 --exclude='json-api-front,json-api-server,json-api-server-e2e,shared-utils,json-shared-type,database'
22+
- name: Cache npm dependencies
23+
id: cache-dependencies-save
24+
uses: actions/cache/save@v4
25+
with:
26+
path: |
27+
.nx
28+
.angular
29+
key: ${{ steps.cache-dependencies-restore.outputs.cache-primary-key }}
2130
# - run: npm nx affected -t e2e-ci --parallel=1
2231
# - run: npm nx affected -t deploy --no-agents

0 commit comments

Comments
 (0)