git.iko.soy/typeable/oauth2-proxy
on ea261ca help sign in
69 lines 1.4 kB history raw
1name: Continuous Integration
3on:
4 push:
5 branches:
6 - '**'
7 # - $default-branch
8 pull_request:
9 branches:
10 - '**'
11 # - $default-branch
13jobs:
14 build:
15 env:
16 COVER: true
17 runs-on: ubuntu-20.04
18 steps:
20 - name: Check out code
21 uses: actions/checkout@v2
23 - name: Set up Go 1.16
24 uses: actions/setup-go@v2
25 with:
26 go-version: 1.16.x
27 id: go
29 - name: Get dependencies
30 run: |
31 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.36.0
32 curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
33 chmod +x ./cc-test-reporter
35 - name: Verify Code Generation
36 run: |
37 make verify-generate
39 - name: Lint
40 run: |
41 make lint
43 - name: Build
44 run: |
45 make build
47 - name: Test
48 env:
49 CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
50 run: |
51 ./.github/workflows/test.sh
53 docker:
54 runs-on: ubuntu-20.04
55 steps:
57 - name: Check out code
58 uses: actions/checkout@v2
60 - name: Set up Docker Buildx
61 id: buildx
62 uses: crazy-max/ghaction-docker-buildx@v3
63 with:
64 buildx-version: latest
65 qemu-version: latest
67 - name: Docker Build
68 run: |
69 make docker