-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (58 loc) · 1.59 KB
/
ci.yml
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
name: CI
on:
push:
permissions:
contents: read
jobs:
build:
name: Build and Setup
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/ci/build
acc_test:
name: Acceptance Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Repo
uses: ./.github/actions/ci/setup
- name: Install Descope CLI
uses: descope/descopecli/.github/actions/install@v0.8.10
- name: Run Acceptance Tests
shell: bash
env:
DESCOPE_PROJECT_ID: ${{ secrets.DESCOPE_PROJECT_ID }}
DESCOPE_MANAGEMENT_KEY: ${{ secrets.DESCOPE_MANAGEMENT_KEY }}
DESCOPE_BASE_URL: https://api.descope.com
TF_ACC: 1
run: |
echo "Running acceptance tests"
set +e
go test -v ./...
result=$?
descope project list | grep '"name":"testacc-.*' | sed -e 's/.*"id":"\([^"]*\)".*/\1/' | xargs -I {} descope project delete {} --force
exit $result
lint:
name: Run Linter
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run Linter
uses: ./.github/actions/ci/lint
leaks:
name: Check Leaks
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check Leaks
uses: ./.github/actions/ci/leaks
with:
gitleaks_license: ${{ secrets.GITLEAKS_LICENSE }}