Skip to content

Commit

Permalink
update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumetz committed Jan 5, 2024
1 parent f19809d commit b0e5664
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: "~/.npm"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: install
cache: 'npm'
- name: install voyager dependencies
run: (cd source/voyager && npm ci)
- name: install ui dependencies
run: npm ci && (cd source/ui && npm ci)
- name: build
- name: build voyager
run: npm run build-voyager
- name: build UI
run: npm run build-ui
build-server:
name: Server
Expand All @@ -38,13 +37,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
# don't discriminate by ${{ matrix.node-version }}
with:
path: "~/.npm"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
cache: 'npm'
- name: install
run: npm ci && (cd source/server && npm ci)
- name: test
Expand Down

0 comments on commit b0e5664

Please sign in to comment.