Update to build with Go 1.22 #51
Workflow file for this run
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: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- ".github/workflows/test.yml" | |
- "**Makefile" | |
- "**.go" | |
- "**.proto" | |
- "go.mod" | |
- "go.sum" | |
jobs: | |
test-linux: | |
name: Build and test on Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.22 | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.22' | |
id: go | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go1.22-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go1.22- | |
- name: Run unit tests | |
run: make testvv | |
env: | |
TEST_FLAGS: -race | |
- name: Report failures to Slack | |
if: ${{ always() && github.ref == 'refs/heads/main' }} | |
uses: ravsamhq/notify-slack-action@v2 | |
with: | |
notification_title: "It seems that my sole purpose in this dismal existence is to spread the gloomy news of broken code and shattered dreams." | |
footer: "I think you ought to know I'm feeling very depressed." | |
status: ${{ job.status }} | |
notify_when: 'failure' | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_REPORTING_WEBHOOK }} |