blob: b9fe694d3e738cd14ac929b3a51fb85cc531dec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
name: "[Ubuntu] Test & check build"
on: [ push, pull_request ]
jobs:
lint-go:
name: Lint go
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: ^1.15
- uses: actions/checkout@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
with:
args: ./... -E stylecheck
test-go:
name: Test Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test with docker-compose
run: OAUTH_EXPIRED_TTL="5" PORTAL_USER="ci" PORTAL_PASS="ci" ./ci/startcompose.sh
build-lib:
name: Build shared Go library
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ^1.15
- run: make
- uses: actions/upload-artifact@v2
with:
name: shared-lib
path: exports/lib/
retention-days: 1
|