-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (74 loc) · 1.85 KB
/
push.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
65
66
67
68
69
70
71
72
73
74
75
76
name: Push
on:
pull_request_target:
push:
branches:
- "*"
permissions:
contents: read
packages: read
jobs:
qodana:
name: Qodana
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- uses: JetBrains/[email protected]
with:
args: -e,GITHUB_ACTOR=${{ env.GITHUB_ACTOR }},-e,GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
submodules: recursive
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- uses: gradle/gradle-build-action@v2
- name: Build
run: |
gradle build -Pci=snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: Chromatic SNAPSHOT
path: build/libs
codeql:
name: CodeQL
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: github/codeql-action/init@v2
with:
languages: java
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- uses: gradle/gradle-build-action@v2
- name: Build
run: |
gradle build -Pci=snapshot --no-build-cache
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/download-artifact@v3
with:
name: Chromatic SNAPSHOT
path: build/libs
- uses: github/codeql-action/analyze@v2