feat!: release v6 Apollo client #284
This file contains hidden or 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
| name: Go | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master, develop ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: "go.mod" | |
| - name: Build | |
| run: | | |
| go test -covermode=count -coverprofile=coverage.out ./... | |
| - name: Verify v6 module imports | |
| run: | | |
| ! git grep -n 'github.com/apolloconfig/agollo/v5' -- '*.go' | |
| test "$(go list -m)" = "github.com/apolloconfig/agollo/v6" | |
| - name: Convert coverage to lcov | |
| uses: jandelgado/gcov2lcov-action@v1.0.9 | |
| - name: Coveralls GitHub Action | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: coverage.lcov | |
| - name: Compile packages | |
| run: go build ./... |