Skip to content

Commit d44762a

Browse files
committed
Update CI to generate Scarb.lock
1 parent 07d8c84 commit d44762a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v3
2323

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

51+
- name: "Create Scarb.lock for cache testing"
52+
run: |
53+
scarb metadata --format-version 1
54+
if [ -f Scarb.lock ]; then
55+
echo "Successfully created Scarb.lock"
56+
else
57+
echo "Failed to create Scarb.lock"
58+
exit 1
59+
fi
60+
61+
5162
# NOTE: This is Scarb <0.7.0, thus this test checks the `cache path` fallback logic.
5263
- name: "Setup Scarb with `scarb-version: 0.4.1`"
5364
uses: ./

0 commit comments

Comments
 (0)