-
Notifications
You must be signed in to change notification settings - Fork 191
51 lines (41 loc) · 1.17 KB
/
pipeline.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
name: Pipeline
on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
jobs:
linux:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Download deps
run: docker build . -t ci
# Disable network so that Azure specific behavior doesn't happen
- name: Quality
run: docker run --network none --env GOPATH="" --rm -v $PWD:/go/work ci make quality
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
- name: Build and test plugin
run: docker run --network none --env GOPATH="" --rm -v $PWD:/go/work ci make e2e
mac:
strategy:
fail-fast: false
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.7
- name: Quality checks
run: make quality
- name: Build and test plugin
run: make e2e