This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (78 loc) · 2.32 KB
/
build-check-dockerize.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: 'Java CI with Maven and Qodana - Code Inspection'
on:
push:
branches: [ 'master', 'develop' ]
pull_request:
branches: [ 'master', 'develop' ]
jobs:
build-maven:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Set up JDK 17 for x64'
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
architecture: x64
cache: maven
- name: 'Build with Maven'
run: mvn -B verify
- name: 'Update dependency graph'
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
qodana:
runs-on: ubuntu-latest
needs: build-maven
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{secrets.QODANA_TOKEN}}
with:
args: --baseline,qodana.sarif.json,--property=project.open.type=Maven
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
needs: build-maven
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java-kotlin' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Build Java Maven Project
uses: actions/checkout@v3
- name: 'Set up JDK 17 for x64'
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
architecture: x64
cache: maven
- name: 'Build with Maven'
run: mvn -B verify
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'
build-container:
runs-on: ubuntu-latest
needs: analyze
steps:
- uses: actions/checkout@v3
- name: 'Build Docker Image'
run: docker build . --file Dockerfile --tag vocalia:$(date +%s)