-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 900 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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