-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (39 loc) · 1.25 KB
/
run_tests.yml
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
34
35
36
37
38
39
name: Build project and run tests
on: [pull_request, push]
jobs:
build_and_test:
runs-on: ubuntu-22.04
if: github.repository_owner == 'TroupeLang'
env:
STACK_OPTS: "--system-ghc"
TROUPE: ${{github.workspace}}
TERM: "xterm-color"
steps:
- name: install missing dependency for ghc
# https://gitlab.haskell.org/ghc/ghc/-/issues/15444
run: |
sudo apt-get update
sudo apt-get install -y libnuma-dev diffutils
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
with:
ghc-version: '9.2.7' # Exact version of ghc to use
# cabal-version: 'latest'. Omitted, but defaults to 'latest'
enable-stack: true
# stack-version: 'latest'
# - run: |
# echo "STACK_OPTS=--system-ghc" >> $GITHUB_ENV
# echo "TROUPE=$GITHUB_WORKSPACE" >> $GITHUB_ENV
# echo "TERM=xterm-color" >> $GITHUB_ENV
- name: compile the compiler
run: make stack
- uses: actions/setup-node@v2
- run: yarn install
- name: compile the runtime
run: make rt
- name: compile libs
run: make libs
- name: compile service
run: make service
- name: unit tests
run: make test