Created
October 24, 2019 11:27
-
-
Save fukuiretu/93602198f4211a81a8811a413a487e10 to your computer and use it in GitHub Desktop.
github-actions-golang-test
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
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
参考