Files
launchpad-redirects/.github/workflows/go.yaml
T
2023-05-26 13:30:25 -04:00

36 lines
745 B
YAML

name: Go Compilation
on:
pull_request:
branches:
- main
types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: Build
run: go build ./...
- name: Test
run: go test -v ./...
- name: Run the action # You would run your tests before this using the output to set state/desc
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: 'Test run'
description: 'Passed'
state: 'success'
sha: ${{github.event.pull_request.head.sha || github.sha}}