Skip to content

Commit

Permalink
ci: Debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
klerick committed Mar 3, 2024
1 parent 52ade84 commit f12e7f5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/actions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ runs:
with:
path: |
node_modules
.nx
.angular
~/.cache/Cypress # needed for the Cypress binary
key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('package-lock.json') }}
- name: Npm install
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
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'
- name: Upload test coverage badge
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'
- name: Cache npm dependencies
id: cache-dependencies-save
uses: actions/cache/save@v4
with:
path: |
.nx
.angular
key: ${{ steps.cache-dependencies-restore.outputs.cache-primary-key }}
# env:
# GIST_SECRET: ${{ secrets.GIST_SECRET }}
# GIST_ID: ${{ secrets.GIST_ID }}
Expand All @@ -48,11 +56,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Checkout and install
- name: Npm install
uses: ./.github/actions
- name: Bump version
run: |
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ jobs:
uses: ./.github/actions
# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track main origin/master
- 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'
- name: Test and build
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'
- name: Cache npm dependencies
id: cache-dependencies-save
uses: actions/cache/save@v4
with:
path: |
.nx
.angular
key: ${{ steps.cache-dependencies-restore.outputs.cache-primary-key }}
# - run: npm nx affected -t e2e-ci --parallel=1
# - run: npm nx affected -t deploy --no-agents

0 comments on commit f12e7f5

Please sign in to comment.