-
Notifications
You must be signed in to change notification settings - Fork 7
65 lines (54 loc) · 1.79 KB
/
go.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
name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ci:
name: 'Run CI'
strategy:
fail-fast: false # Run the whole matrix for maximum information, no matter if we fail in one entry early
matrix:
os:
- 'macOS-latest'
- 'ubuntu-latest'
- 'windows-latest'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '11'
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: '3.9.1'
- name: Set up Git
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "<>"
shell: bash # Explicitly use Bash because otherwise failing Windows jobs are not erroring.
- name: Build
run: make install
shell: bash # Explicitly use Bash because otherwise failing Windows jobs are not erroring.
- name: Install testing tools
run: |
make install-tools-testing
go run scripts/gitlab-ci/main.go
shell: bash # Explicitly use Bash because otherwise failing Windows jobs are not erroring.
- name: Lint Build
run: make lint-build-ci
shell: bash # Explicitly use Bash because otherwise failing Windows jobs are not erroring.
- name: Test
run: make test
shell: bash # Explicitly use Bash because otherwise failing Windows jobs are not erroring.