Skip to content

Commit

Permalink
ci: fix cache paths and key; remove e2e test from build
Browse files Browse the repository at this point in the history
  • Loading branch information
dwimberger committed Dec 11, 2024
1 parent 08b7103 commit 120de70
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Run Build
run: npm i && npx nest build && npm run test:e2e

run: npm i && npx nest build
12 changes: 5 additions & 7 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@ on:
pull_request:
branches: [ 'main' ]
jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Cache
id: build-products
- name: Cache node_modules
id: node-modules
uses: actions/cache@v4
with:
path: |
node_modules
dist
key: build-products
path: node_modules
key: node-modules
- name: Run Build
run: npm i && npx nest build && npm run test:e2e

5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ jobs:
id: node-modules
uses: actions/cache@v4
with:
path: |
node_modules
test-app/node_modules
.yarn/cache
path: node_modules
key: node-modules
- name: Import GPG key
id: import-gpg
Expand Down

0 comments on commit 120de70

Please sign in to comment.