Skip to content

Commit

Permalink
build: set up NX distributed caching
Browse files Browse the repository at this point in the history
Related to #83
  • Loading branch information
JoosepAlviste committed Jan 20, 2024
1 parent 949af2b commit 0f4eb85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,23 @@ jobs:
bash bin/generate-secret-token.sh
- name: Installing dependencies
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
run: |
pnpm install
pnpm exec nx affected -t install-deps:e2e
- name: Checks
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
run: |
pnpm exec nx affected -t migrate:test
pnpm exec nx affected -t migrate:e2e
pnpm exec nx affected -t lint,tsc,test:coverage --verbose
- name: E2E tests
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
run: |
pnpm exec nx affected -t test:e2e
- uses: actions/upload-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
}
},
"build:docker": {
"cache": true,
"defaultConfiguration": "docker"
},
"build:e2e": {
Expand Down Expand Up @@ -66,5 +65,6 @@
"start:prod": {
"dependsOn": ["build"]
}
}
},
"nxCloudAccessToken": "NGUzMjk1ZGMtYTZmYS00MDM3LTgxYTItMGZiMTFmZmJmZmExfHJlYWQ="
}

0 comments on commit 0f4eb85

Please sign in to comment.