blob: 08cd0311fdb7b50dbb19aee05302682673865738 (
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
|
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
test-go:
name: Test Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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@v2
- uses: actions/setup-go@v2
with:
go-version: ^1.15
- run: make
- uses: actions/upload-artifact@v2
with:
name: shared-lib
path: exports/lib/
retention-days: 1
|