Skip to content

Commit 153b55f

Browse files
committed
Add scarb-lock test
1 parent 803c44c commit 153b55f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

+18
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ jobs:
3333
version = "1.0.0"
3434
EOF
3535
36+
- name: "Create Scarb.lock in subfolder for cache testing"
37+
shell: bash
38+
run: |
39+
mkdir ./subdir
40+
cat <<EOF > ./subdir/Scarb.lock
41+
# Code generated by scarb DO NOT EDIT.
42+
version = 1
43+
44+
[[package]]
45+
name = "example_package"
46+
version = "1.0.0"
47+
EOF
48+
3649
- name: "Fetch latest Scarb version from GitHub releases"
3750
id: version
3851
shell: pwsh
@@ -76,6 +89,11 @@ jobs:
7689
scarb-version: nightly
7790
- run: scarb --version | grep "${{ steps.version.outputs.LATEST_NIGHTLY_VERSION }}"
7891

92+
- name: "Setup Scarb with `scarb-lock`"
93+
uses: ./
94+
with:
95+
scarb-lock: ./subdir/Scarb.lock
96+
7997
- name: "Create .tool-versions file"
8098
run: echo "scarb 0.7.0" >> .tool-versions
8199
- name: "Setup Scarb using `.tool-versions` file"

0 commit comments

Comments
 (0)