Skip to content

Commit

Permalink
Add a test case for latest:nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
szymmis committed Aug 16, 2023
1 parent a1af8f0 commit bbdae18
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
echo "Latest Scarb version found is $latest_version"
echo "LATEST_VERSION=$latest_version" >> $env:GITHUB_OUTPUT
$location = (Invoke-WebRequest -Uri "https://github.com/software-mansion/scarb-nightlies/releases/latest" -Method Head -MaximumRedirection 0 -SkipHttpErrorCheck -ErrorAction Ignore).Headers.Location
$latest_version = ($location -replace '^.*/nightly-','nightly-')
echo "Latest Scarb nightly version found is $latest_version"
echo "LATEST_NIGHTLY_VERSION=$latest_version" >> $env:GITHUB_OUTPUT
- name: "Check Scarb latest"
uses: asdf-vm/actions/plugin-test@v2
with:
Expand All @@ -38,6 +43,13 @@ jobs:
version: 0.5.2
command: scarb --version | grep "scarb 0.5.2"

- name: "Check Scarb latest:nightly"
uses: asdf-vm/actions/plugin-test@v2
with:
skip_install: true
version: latest:nightly
command: scarb --version | grep "scarb ${{ steps.version.outputs.LATEST_NIGHTLY_VERSION }}"

- name: "Check Scarb nightly-2023-08-10"
uses: asdf-vm/actions/plugin-test@v2
with:
Expand Down

0 comments on commit bbdae18

Please sign in to comment.