forked from apalache-mc/apalache
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (80 loc) · 2.44 KB
/
main.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
on: [push]
name: build
jobs:
unit-tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build and Unit Test
run: mvn --batch-mode --no-transfer-progress test
integration-tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Cache local opam repository
uses: actions/cache@v2
with:
path: ~/.opam
key: ${{ runner.os }}-opam-4.11.0
- name: Set up opam
uses: avsm/setup-ocaml@v1
with:
ocaml-version: 4.11.0
- name: Install mdx
run: |
opam pin https://github.com/realworldocaml/mdx.git#e5a86b0b0588d07cabbb3b1bedde84d1ebb35d1b
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build apalache
run: make apalache-jar
- name: Run integration tests
run: ./test/run-integration
docker-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache local opam repository
uses: actions/cache@v2
with:
path: ~/.opam
key: ${{ runner.os }}-opam-4.11.0
- name: Set up opam
uses: avsm/setup-ocaml@v1
with:
ocaml-version: 4.11.0
- name: Install mdx
run: |
opam pin https://github.com/realworldocaml/mdx.git#e5a86b0b0588d07cabbb3b1bedde84d1ebb35d1b
- name: Build the docker image
run: docker build -t apalache/mc:ci .
- name: Run integration tests in docker container
run: ./test/run-integration
env:
USE_DOCKER: true
APALACHE_TAG: ci