compose/.github/workflows/ci.yml

106 lines
2.3 KiB
YAML
Raw Normal View History

2020-04-30 17:37:41 +02:00
name: Continuous integration
on: [push]
2020-04-30 17:37:41 +02:00
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
GO111MODULE: "on"
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
- name: Run golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b . v1.27.0
./golangci-lint run
2020-04-30 17:37:41 +02:00
build:
name: Build
runs-on: ubuntu-latest
env:
GO111MODULE: "on"
2020-04-30 17:37:41 +02:00
steps:
2020-05-04 23:50:00 +02:00
- name: Set up Go 1.14
2020-04-30 17:41:59 +02:00
uses: actions/setup-go@v1
with:
2020-05-04 23:50:00 +02:00
go-version: 1.14
2020-04-30 17:41:59 +02:00
id: go
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
2020-04-30 17:37:41 +02:00
2020-04-30 17:41:59 +02:00
- name: Test
run: make -f builder.Makefile test
- name: Build
run: make -f builder.Makefile cli
- name: Install Protoc
uses: arduino/setup-protoc@master
with:
version: "3.9.1"
- uses: actions/setup-node@v1
with:
node-version: "10.x"
- name: E2E Test
run: make e2e-local
2020-06-08 21:13:51 +02:00
windows-build:
name: Windows Build
runs-on: windows-latest
env:
GO111MODULE: "on"
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: make -f builder.Makefile test
- name: Build
run: make -f builder.Makefile cli
- name: Install Protoc
uses: arduino/setup-protoc@master
with:
version: "3.9.1"
- uses: actions/setup-node@v1
with:
node-version: "10.x"
- name: E2E Test
run: make e2e-local