This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use github-actions for compatibility testing (#200)
- Loading branch information
Showing
6 changed files
with
24 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
on: pull_request | ||
name: Go Compat | ||
|
||
jobs: | ||
unit: | ||
runs-on: ubuntu-latest | ||
name: API Compatibility (go ${{ matrix.go }}) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Fetching merge base (${{ env.GITHUB_BASE_REF }}) | ||
run: git fetch --depth=1 origin "$GITHUB_BASE_REF" | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16.x | ||
- name: Go information | ||
run: | | ||
go version | ||
go env | ||
- name: Install Compat Check | ||
run: go install github.com/smola/gocompat/cmd/gocompat@8498b97a44792a3a6063c47014726baa63e2e669 # 2021.7 (v0.3.0) | ||
- name: Checking Compatibility | ||
run: | | ||
gocompat compare --go1compat --git-refs="$GITHUB_BASE_REF..$GITHUB_SHA" ./... | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.