blob: 32e4fd9f8a4b7303d2f04433eaf45b8fbb6557b5 (
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
44
|
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.17
- uses: actions/checkout@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: -E stylecheck,revive
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.17
- run: make
- uses: actions/upload-artifact@v3
with:
name: shared-lib
path: exports/lib/
retention-days: 1
|