Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit e5b6740

Browse files
authored
ci: use github-actions for compatibility testing (#200)
1 parent aec4faa commit e5b6740

File tree

6 files changed

+24
-78
lines changed

6 files changed

+24
-78
lines changed

.github/workflows/go-compat.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on: pull_request
2+
name: Go Compat
3+
4+
jobs:
5+
unit:
6+
runs-on: ubuntu-latest
7+
name: API Compatibility (go ${{ matrix.go }})
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Fetching merge base (${{ env.GITHUB_BASE_REF }})
11+
run: git fetch --depth=1 origin "$GITHUB_BASE_REF"
12+
- uses: actions/setup-go@v2
13+
with:
14+
go-version: 1.16.x
15+
- name: Go information
16+
run: |
17+
go version
18+
go env
19+
- name: Install Compat Check
20+
run: go install github.com/smola/gocompat/cmd/gocompat@8498b97a44792a3a6063c47014726baa63e2e669 # 2021.7 (v0.3.0)
21+
- name: Checking Compatibility
22+
run: |
23+
gocompat compare --go1compat --git-refs="$GITHUB_BASE_REF..$GITHUB_SHA" ./...
24+

tools/compat-check

-21
This file was deleted.

tools/go.mod

-5
This file was deleted.

tools/go.sum

-44
This file was deleted.

tools/main.go

-1
This file was deleted.

tools/tools.go

-7
This file was deleted.

0 commit comments

Comments
 (0)