1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-02-03 13:11:42 +02:00

55 lines
873 B
YAML
Raw Normal View History

2021-02-17 17:55:15 +08:00
name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
2021-02-24 11:49:16 +08:00
2021-02-24 11:56:09 +08:00
build:
runs-on: ubuntu-latest
2021-02-17 17:55:15 +08:00
steps:
2021-02-24 11:56:09 +08:00
- uses: actions/checkout@v2
2021-02-17 17:55:15 +08:00
2021-02-24 11:56:09 +08:00
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
2021-02-17 17:55:15 +08:00
2021-02-24 11:56:09 +08:00
- name: Build
run: go build -v ./...
2021-02-17 17:55:15 +08:00
2021-02-24 11:56:09 +08:00
- name: Test
run: go test -v ./...
2021-03-05 22:40:38 +08:00
- name: Lint
run: |
go get golang.org/x/lint/golint
golint ./...
- name: Kratos
run: |
cd cmd/kratos
go build ./...
go test ./...
- name: HTTP
run: |
cd cmd/protoc-gen-go-http
go build ./...
go test ./...
- name: Errors
run: |
cd cmd/protoc-gen-go-errors
go build ./...
go test ./...
2021-03-05 23:49:25 +08:00
- name: Examples
run: |
cd examples
go build ./...
go test ./...