Skip to content

Commit

Permalink
test with all examples
Browse files Browse the repository at this point in the history
Signed-off-by: Anton-4 <[email protected]>
  • Loading branch information
Anton-4 authored Nov 15, 2023
1 parent ad4b929 commit e5c584b
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/basic_cli_build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# use .tar.gz for quick testing
env:
# use .tar.gz for quick testing
ARCHIVE_FORMAT: .tar.gz
BASIC_CLI_BRANCH: main

jobs:
fetch-releases:
Expand Down Expand Up @@ -187,24 +188,24 @@ jobs:
cd basic-cli-platform && ls | grep "tar" | xargs brotli -d
ls | grep "tar$" | xargs tar -xf
- name: prep testing http-get.roc
- name: Install expect for tests if we dont have it yet
run: if ! dpkg -l | grep -qw expect; then sudo apt install -y expect

- name: prep testing
run: |
mv roc_nightly basic-cli-platform/.
cd basic-cli-platform
mkdir examples
cd examples
curl -fOL https://raw.githubusercontent.com/roc-lang/basic-cli/main/examples/http-get.roc
sed -i 's/pf:\ \"[^"]*/pf:\ \"\.\.\/main.roc/g' http-get.roc
mkdir src
find . -maxdepth 1 -type f -exec mv {} src/ \;
mkdir temp-basic-cli
cd temp-basic-cli
git clone https://github.com/roc-lang/basic-cli.git
git checkout ${{ env.BASIC_CLI_BRANCH }}
cp -r examples ..
cp -r ci ..
cd ..
./roc_nightly/roc build examples/http-get.roc --prebuilt-platform
curl -fOL https://raw.githubusercontent.com/roc-lang/basic-cli/main/ci/expect_scripts/http-get.exp
- run: sudo apt install -y expect

- name: execute test
run: |
cd basic-cli-platform
expect http-get.exp
ROC=./roc_nightly/roc EXAMPLES_DIR=./examples ./ci/all_tests.sh

0 comments on commit e5c584b

Please sign in to comment.