glider/.github/workflows/build.yml

45 lines
1.0 KiB
YAML
Raw Normal View History

name: Build
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
2021-02-06 00:44:03 +08:00
strategy:
matrix:
2021-02-06 00:47:43 +08:00
go-version: [ '1.16.0-rc1' ]
2021-02-06 00:44:03 +08:00
steps:
2020-04-03 22:54:13 +08:00
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
2021-02-06 00:26:58 +08:00
uses: actions/setup-go@v2
2020-04-03 22:54:13 +08:00
with:
2021-02-06 00:44:03 +08:00
stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")'
go-version: ${{ matrix.go-version }}
2020-09-13 23:28:01 +08:00
- name: Go Env
run: go env
2020-04-03 22:54:13 +08:00
- name: Test
run: go test -v .
build:
name: Build
runs-on: ubuntu-latest
needs: [test]
2021-02-06 00:44:03 +08:00
strategy:
matrix:
2021-02-06 00:47:43 +08:00
go-version: [ '1.16.0-rc1' ]
2021-02-06 00:44:03 +08:00
steps:
2020-04-03 22:54:13 +08:00
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
2021-02-06 00:26:58 +08:00
uses: actions/setup-go@v2
2020-04-03 22:54:13 +08:00
with:
2021-02-06 00:44:03 +08:00
stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")'
go-version: ${{ matrix.go-version }}
2020-09-13 23:28:01 +08:00
- name: Go Env
run: go env
2020-04-03 22:54:13 +08:00
- name: Build
run: go build -v .