Skip to content

Commit

Permalink
Add CI test for docs gen (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
smores56 authored Dec 22, 2024
1 parent eb654c0 commit b91f309
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ concurrency:
cancel-in-progress: true

jobs:

test-examples:
run-tests:
runs-on: [ubuntu-20.04]
name: Run Roc tests
steps:
- uses: actions/checkout@v3

Expand All @@ -32,5 +32,30 @@ jobs:

- run: ./roc_nightly/roc version

# run all tests
- run: ./roc_nightly/roc test package/main.roc

test-docs:
runs-on: [ubuntu-20.04]
name: Validate docs generation
steps:
- uses: actions/checkout@v3

# get roc cli
- name: get latest roc nightly
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

- run: ./roc_nightly/roc version

- run: ./roc_nightly/roc docs package/main.roc

0 comments on commit b91f309

Please sign in to comment.