Skip to content

Instantly share code, notes, and snippets.

@fukuiretu
Created October 24, 2019 11:27
Show Gist options
  • Save fukuiretu/93602198f4211a81a8811a413a487e10 to your computer and use it in GitHub Desktop.
Save fukuiretu/93602198f4211a81a8811a413a487e10 to your computer and use it in GitHub Desktop.
github-actions-golang-test
on: [push]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.13.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@master
- name: Test
run: go test ./...
- name: Slack notify
uses: 8398a7/action-slack@v2
with:
status: ${{ job.status }}
author_name: Integration Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment