Skip to content

Commit

Permalink
use cached target directory
Browse files Browse the repository at this point in the history
  • Loading branch information
MGibson1 committed Sep 25, 2024
1 parent 251b926 commit 123b5ea
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/language-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Build schemas
run: npm run schemas

- name: zip languages dir
- name: Zip languages dir
run: zip -r languages.zip languages

- name: Upload schemas
Expand All @@ -60,6 +60,16 @@ jobs:
name: languages.zip
path: ${{ github.workspace }}/languages.zip
if-no-files-found: error

- name: Zip target dir
run: zip -r target.zip target

- name: Upload target
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: target.zip
path: ${{ github.workspace }}/target.zip
if-no-files-found: error

test:
name: ${{ matrix.language }}
Expand Down Expand Up @@ -123,6 +133,16 @@ jobs:
rm -rf languages
unzip languages.zip
- name: Download target artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: target.zip

- name: Unzip target
run: |
rm -rf target
unzip target.zip
- name: Set up run data
run: |
cargo run --release --bin language-tests setup
Expand Down

0 comments on commit 123b5ea

Please sign in to comment.