mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
ci: Add matrix build.
This commit is contained in:
parent
65ed153eb0
commit
297ade3616
45
.github/workflows/go.yml
vendored
45
.github/workflows/go.yml
vendored
@ -6,17 +6,25 @@ on:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
name: Build on ${{ matrix.os }} - Go${{ matrix.go_version }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
go_version:
|
||||
- 1.13
|
||||
os:
|
||||
- ubuntu-latest
|
||||
|
||||
- name: Set up Go 1.13
|
||||
steps:
|
||||
|
||||
- name: Set up Go ${{ matrix.go_version }}
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.13
|
||||
go-version: ${{ matrix.go_version }}
|
||||
id: go
|
||||
|
||||
- name: Set up Env
|
||||
@ -66,6 +74,33 @@ jobs:
|
||||
- name: Coverage
|
||||
run: bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
scaffold:
|
||||
|
||||
name: Scaffold Test on ${{ matrix.os }} - Go${{ matrix.go_version }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
go_version:
|
||||
- 1.13
|
||||
os:
|
||||
- ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: Set up Go ${{ matrix.go_version }}
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: ${{ matrix.go_version }}
|
||||
id: go
|
||||
|
||||
- name: Set up Env
|
||||
run: |
|
||||
echo "::set-env name=GOPATH::$(go env GOPATH)"
|
||||
echo "::add-path::$(go env GOPATH)/bin"
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Tool
|
||||
run: |
|
||||
go install ./...
|
||||
|
Loading…
x
Reference in New Issue
Block a user