diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fae9fe6..a5e5277 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 < Scarb.toml @@ -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: ./