-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (40 loc) · 1.03 KB
/
build.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
name: Monarch Build Tester
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-all-monarch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Build all Monarch clients
run: make linux macos windows
build-test-monarch:
runs-on: ubuntu-latest
strategy:
matrix:
install_script:
- "./scripts/install-monarch.sh"
- "./scripts/docker-install-monarch.sh"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Install Monarch
continue-on-error: false
run: bash ${{ matrix.install_script }}
- name: Setup Monarch Container
continue-on-error: false
run: docker build -t monarch -f docker/builder/Dockerfile .
- name: Run Monarch tests
run: go test ./...
- name: Cleanup
run: bash ./scripts/uninstall-monarch.sh