2020-03-21 20:53:50 +01:00
|
|
|
name: Integration
|
|
|
|
|
2021-02-18 09:07:47 +01:00
|
|
|
on:
|
|
|
|
push:
|
2021-02-26 11:05:45 +01:00
|
|
|
pull_request:
|
2020-03-21 20:53:50 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-11-03 14:04:13 +01:00
|
|
|
- uses: actions/checkout@v2.4.0
|
2021-09-14 11:37:38 +02:00
|
|
|
|
2020-03-21 20:53:50 +01:00
|
|
|
- name: Setup go
|
2022-02-16 16:42:06 +01:00
|
|
|
uses: actions/setup-go@v2.2.0
|
2020-03-21 20:53:50 +01:00
|
|
|
with:
|
2022-02-20 12:32:34 +01:00
|
|
|
go-version: '1.17.x'
|
2021-09-14 11:37:38 +02:00
|
|
|
|
2020-03-21 20:53:50 +01:00
|
|
|
- name: Vet
|
2021-09-14 11:37:38 +02:00
|
|
|
run: go vet
|
|
|
|
|
2020-03-21 20:53:50 +01:00
|
|
|
- name: Test
|
2021-09-14 11:37:38 +02:00
|
|
|
run: go test ./...
|
2020-03-21 20:53:50 +01:00
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
2021-09-14 11:37:38 +02:00
|
|
|
needs:
|
|
|
|
- test
|
2020-03-21 20:53:50 +01:00
|
|
|
steps:
|
2021-11-03 14:04:13 +01:00
|
|
|
- uses: actions/checkout@v2.4.0
|
2021-09-14 11:37:38 +02:00
|
|
|
|
2020-03-21 20:53:50 +01:00
|
|
|
- name: Setup go
|
2022-02-16 16:42:06 +01:00
|
|
|
uses: actions/setup-go@v2.2.0
|
2020-03-21 20:53:50 +01:00
|
|
|
with:
|
2022-02-20 12:32:34 +01:00
|
|
|
go-version: '1.17.x'
|
2021-09-14 11:37:38 +02:00
|
|
|
|
2020-03-21 20:53:50 +01:00
|
|
|
- name: Build
|
2021-09-14 11:37:38 +02:00
|
|
|
run: go build ./...
|
2020-03-21 20:53:50 +01:00
|
|
|
|
|
|
|
- name: Docker
|
2021-09-14 11:37:38 +02:00
|
|
|
run: docker build .
|