Merge pull request #46 from imclerran/rename-tools-example #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check and Test Package | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
# this cancels workflows currently in progress if you start a new one | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Run roc tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Install Roc | |
uses: hasnep/[email protected] | |
with: | |
roc-version: nightly | |
testing: "true" | |
- name: Run roc check on package | |
run: roc check ./package/main.roc | |
- name: Run roc check on examples | |
run: for roc_file in ./examples/*.roc; do roc check $roc_file; done | |
- name: Build the examples | |
run: for roc_file in ./examples/*.roc; do roc build --linker=legacy $roc_file; done |