-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (64 loc) · 1.8 KB
/
ci.yaml
File metadata and controls
67 lines (64 loc) · 1.8 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: ci
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- main
jobs:
go-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run linters
uses: golangci/golangci-lint-action@v8
with:
version: latest
args: --timeout=3m
go-test:
strategy:
matrix:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
if: success()
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: go tests
run: (set -o pipefail && go test -v -covermode=count -json ./... | tee test.json)
- name: annotate go tests
if: always()
uses: guyarb/golang-test-annotations@v0.8.0
with:
test-results: test.json
test-groups:
runs-on: ubuntu-latest
env:
BATON_LOG_LEVEL: debug
BATON_API_KEY: ${{ secrets.BATON_API_KEY }}
BATON_ORG_ID: ${{ secrets.BATON_ORG_ID }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build baton-jumpcloud
run: go build ./cmd/baton-jumpcloud
- name: Grant/revoke group test
uses: ConductorOne/github-workflows/actions/sync-test@v2
with:
connector: ./baton-jumpcloud
baton-entitlement: "${{ vars.TEST_GROUP_ENTITLEMENT }}"
baton-principal: "${{ vars.TEST_GROUP_PRINCIPAL }}"
baton-principal-type: "${{ vars.TEST_GROUP_PRINCIPAL_TYPE }}"