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

ci: use github-actions for compatibility testing #200

Merged
merged 1 commit into from
Jul 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/go-compat.yml
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" ./...

21 changes: 0 additions & 21 deletions tools/compat-check

This file was deleted.

5 changes: 0 additions & 5 deletions tools/go.mod

This file was deleted.

44 changes: 0 additions & 44 deletions tools/go.sum

This file was deleted.

1 change: 0 additions & 1 deletion tools/main.go

This file was deleted.

7 changes: 0 additions & 7 deletions tools/tools.go

This file was deleted.