mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Build
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go-version: [ '1.16.0-rc1' ]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")'
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Go Env
|
|
run: go env
|
|
- name: Test
|
|
run: go test -v .
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
needs: [test]
|
|
strategy:
|
|
matrix:
|
|
go-version: [ '1.16.0-rc1' ]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")'
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Go Env
|
|
run: go env
|
|
- name: Build
|
|
run: go build -v . |