forked from apache/pulsar-client-go
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 841 Bytes
/
project.yml
File metadata and controls
37 lines (32 loc) · 841 Bytes
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
name: CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- name: build
run: make build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
integration-tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.15, 1.16, 1.17, 1.18, 1.19]
steps:
- name: clean docker cache
run: |
docker rmi $(docker images -q) -f
df -h
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Run Tests
run: make test GO_VERSION=${{ matrix.go-version }}