Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/test_latest_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ permissions: {}
jobs:
test-latest-release:
runs-on: [ubuntu-22.04]
permissions:
contents: read
steps:
- uses: actions/checkout@v4

Expand All @@ -31,3 +33,5 @@ jobs:

- name: Run all tests with latest roc release + latest basic-cli release
run: EXAMPLES_DIR=./examples/ ./ci/test_latest_release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion ci/test_latest_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mv "$NIGHTLY_FOLDER" roc_nightly
./roc_nightly/roc version

# Get the latest basic-cli release file URL
CLI_RELEASES_JSON=$(curl -s https://api.github.com/repos/roc-lang/basic-cli/releases)
CLI_RELEASES_JSON=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/roc-lang/basic-cli/releases)
CLI_RELEASE_URL=$(echo $CLI_RELEASES_JSON | jq -r '.[0].assets | .[] | select(.name | test("\\.tar\\.br$")) | .browser_download_url')

# Use the latest basic-cli release as the platform for every example
Expand Down