Merge pull request #170 from reload/update #112
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
name: Build and test | |
on: | |
push: | |
paths: | |
- 'webhook/**' | |
- '.github/workflows/**' | |
permissions: | |
contents: read | |
jobs: | |
build_and_test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: arnested/go-version-action@v1 | |
id: version | |
with: | |
working-directory: webhook | |
- name: Setup Go ${{ steps.version.outputs.go-mod-version }}.x | |
uses: WillAbides/setup-go-faster@v1.14.0 | |
with: | |
go-version: ${{ steps.version.outputs.go-mod-version }}.x | |
ignore-local: true | |
- name: go test | |
working-directory: webhook | |
env: | |
GO111MODULE: 'on' | |
run: go test --verbose -race -cover -covermode=atomic ./... |