mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-07 18:15:47 +08:00
add build action
This commit is contained in:
30
.github/workflows/go.yml
vendored
Normal file
30
.github/workflows/go.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Go
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ v2dev ]
|
||||
pull_request:
|
||||
branches: [ v2dev ]
|
||||
|
||||
jobs:
|
||||
test-build:
|
||||
name: Test & Build
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.13.x, 1.14.x]
|
||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- name: setup go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
id: go
|
||||
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: test
|
||||
run: |
|
||||
go mod tidy -v
|
||||
go test -race ./...
|
||||
Reference in New Issue
Block a user