-
Notifications
You must be signed in to change notification settings - Fork 28
71 lines (56 loc) · 1.54 KB
/
pull-request.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
name: Build and Run Tests
on: [pull_request]
jobs:
go-version:
uses: ./.github/workflows/go-version.yml
build:
name: Code generation & compile
needs: go-version
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-2019, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ needs.go-version.outputs.go_version }}
- name: Generate protos and build project
run: make generate-protos-and-build
- name: Misc tests
run: make misc
tests:
needs: build
name: Tests
strategy:
fail-fast: false
matrix:
version: [previous-lts, lts, latest]
uses: ./.github/workflows/tests.yml
with:
esdb_version: ${{ matrix.version }}
go_version: ${{ needs.go-version.outputs.go_version }}
plugins-tests:
needs: build
name: Plugins Tests
strategy:
fail-fast: false
matrix:
version: [24.2.0-jammy]
uses: ./.github/workflows/test-plugins.yml
with:
esdb_version: ${{ matrix.version }}
go_version: ${{ needs.go-version.outputs.go_version }}
esdb_repository: "docker.eventstore.com/eventstore-ee/eventstoredb-commercial"
secrets: inherit
linting:
needs: tests
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Linting
run: go vet ./...
- name: Code formatting checks
run: diff -u <(echo -n) <(goimports -d ./)