Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Jul 15, 2024
1 parent 7e1b4f6 commit 2abacc3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ on:
env:
HEAD_COMMIT: ${{ github.event.inputs.commit || github.sha }}

CACHED_BUILD_PATHS: |
${{ github.workspace }}/packages/*/*.tgz
${{ github.workspace }}/dev-packages/*/*.tgz
${{ github.workspace }}/dev-packages/test-utils/build
${{ github.workspace }}/node_modules
${{ github.workspace }}/packages/*/node_modules
${{ github.workspace }}/dev-packages/*/node_modules
permissions:
contents: read
issues: write
Expand All @@ -30,6 +38,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Check canary cache
uses: actions/cache@v4
with:
path: ${{ env.CACHED_BUILD_PATHS }}
key: canary-${{ env.HEAD_COMMIT }}
- name: Install dependencies
run: yarn install
- name: Build packages
Expand Down Expand Up @@ -98,6 +111,12 @@ jobs:
with:
node-version-file: 'dev-packages/e2e-tests/package.json'

- name: Restore canary cache
uses: actions/cache/restore@v4
with:
path: ${{ env.CACHED_BUILD_PATHS }}
key: canary-${{ env.HEAD_COMMIT }}

- name: Get node version
id: versions
run: |
Expand Down

0 comments on commit 2abacc3

Please sign in to comment.