magnetico/.github/workflows/go.yml

36 lines
596 B
YAML
Raw Normal View History

2020-11-27 20:16:42 +01:00
name: Go
2020-12-23 07:36:16 +01:00
on: [push, pull_request]
2020-11-27 20:16:42 +01:00
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
2022-08-08 18:24:30 +02:00
uses: actions/setup-go@v3
2020-11-27 20:16:42 +01:00
with:
2022-08-08 18:24:30 +02:00
go-version: ^1.16
2020-11-27 20:16:42 +01:00
- name: Check out code into the Go module directory
2022-08-08 18:24:30 +02:00
uses: actions/checkout@v3
2020-11-27 20:16:42 +01:00
- name: Build
run: |
make magneticod
make magneticow
- name: Test
run: |
make test
2020-11-27 20:49:26 +01:00
2020-11-27 20:16:42 +01:00
- name: Lint
2022-08-08 01:25:30 +02:00
uses: dominikh/staticcheck-action@v1.2.0
2022-08-08 01:32:19 +02:00
with:
install-go: false
2020-11-27 20:49:26 +01:00
- name: Check Formatting
2020-11-27 20:16:42 +01:00
run: |
make check-formatting