Skip to content

Upgrade to basic cli 18, improved prompt+readme #3

Upgrade to basic cli 18, improved prompt+readme

Upgrade to basic cli 18, improved prompt+readme #3

Workflow file for this run

on:
pull_request:
workflow_dispatch:
# this cancels workflows currently in progress if you start a new one
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-tests:
runs-on: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
# get roc cli
- id: try_fetching_testing_release
continue-on-error: true
run: |
curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-TESTING.tar.gz
- name: There are no TESTING releases, checking regular releases instead
if: steps.try_fetching_testing_release.outcome == 'failure'
run: |
curl -fOL https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz
- name: rename nightly tar
run: mv $(ls | grep "roc_nightly.*tar\.gz") roc_nightly.tar.gz
- name: decompress the tar
run: tar -xzf roc_nightly.tar.gz
- run: rm roc_nightly.tar.gz
- name: simplify nightly folder name
run: mv roc_nightly* roc_nightly
- name: Add roc_nightly to PATH
run: echo "${{ github.workspace }}/roc_nightly" >> $GITHUB_PATH
- run: roc version
# run all tests
- name: Run tests
run: ./CI/all_tests.sh