Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI test for docs gen #8

Merged
merged 1 commit into from
Dec 22, 2024
Merged
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
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