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

Commit

Permalink
ci: use github-actions for compatibility testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 13, 2021
1 parent aec4faa commit 90468e2
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 78 deletions.
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.

0 comments on commit 90468e2

Please sign in to comment.