-
Notifications
You must be signed in to change notification settings - Fork 285
52 lines (46 loc) · 1.16 KB
/
ci.yml
File metadata and controls
52 lines (46 loc) · 1.16 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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: {}
jobs:
prepare: # macOS code-signing only works on `push` events and not `pull_request` events
if: ${{ !startsWith(github.head_ref, 'release/v') }}
name: Prepare CI
runs-on: ubuntu-latest
permissions: {}
steps:
- run: echo "Running CI for branch ${GITHUB_HEAD_REF}"
env:
GITHUB_HEAD_REF: ${{ github.head_ref }}
lint:
name: Lint App
uses: ./.github/workflows/lint.yml
needs: prepare
permissions:
contents: read
tests:
name: Tests
uses: ./.github/workflows/test.yml
needs: lint
permissions:
contents: read
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
build:
name: Build
uses: ./.github/workflows/build.yml
needs: tests
permissions:
contents: read
secrets:
OAUTH_CLIENT_ID: ${{ secrets.OAUTH_CLIENT_ID }}
# Signing certificates
CSC_LINK: ${{ secrets.CSC_LINK }}
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}