mirror of
https://github.com/httpjamesm/launchpad-redirects.git
synced 2024-12-06 19:16:34 +01:00
36 lines
745 B
YAML
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}}
|