Skip to content

Commit

Permalink
Update CI to generate Scarb.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
DelevoXDG committed Oct 9, 2024
1 parent 07d8c84 commit d44762a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: "Create bare bones Scarb.toml for cache testing"
- name: "Create bare bones Scarb.toml"
shell: bash
run: |
cat <<EOF > Scarb.toml
Expand All @@ -48,6 +48,17 @@ jobs:
uses: ./
- run: scarb --version | grep "scarb ${{ steps.version.outputs.LATEST_VERSION }}"

- name: "Create Scarb.lock for cache testing"
run: |
scarb metadata --format-version 1
if [ -f Scarb.lock ]; then
echo "Successfully created Scarb.lock"
else
echo "Failed to create Scarb.lock"
exit 1
fi
# NOTE: This is Scarb <0.7.0, thus this test checks the `cache path` fallback logic.
- name: "Setup Scarb with `scarb-version: 0.4.1`"
uses: ./
Expand Down

0 comments on commit d44762a

Please sign in to comment.