Skip to content

Commit 0a663cc

Browse files
committed
Merge branch 'main' of github.com:MFrikken/SAGE-Java
2 parents 6ed989a + 4d51121 commit 0a663cc

File tree

2 files changed

+57
-9
lines changed

2 files changed

+57
-9
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
name: Java CI
2-
1+
name: Maven Build
32
on:
43
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
104

115
jobs:
126
build:
137
runs-on: ubuntu-latest
8+
149
steps:
1510
- name: Checkout repository
1611
uses: actions/checkout@v4
@@ -20,6 +15,7 @@ jobs:
2015
with:
2116
distribution: adopt
2217
java-version: 21
18+
cache: maven
2319

24-
- name: Run tests
25-
run: mvn test
20+
- name: Build
21+
run: mvn -B package --file pom.xml

.github/workflows/codeql.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "CodeQL Advanced"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
analyze:
9+
name: Analyze (${{ matrix.language }})
10+
runs-on: 'ubuntu-latest'
11+
permissions:
12+
# required for all workflows
13+
security-events: write
14+
# required to fetch internal or private CodeQL packs
15+
packages: read
16+
# only required for workflows in private repositories
17+
actions: read
18+
contents: read
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
include:
24+
- language: actions
25+
build-mode: none
26+
- language: java-kotlin
27+
build-mode: none
28+
- language: javascript-typescript
29+
build-mode: none
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
34+
35+
- name: Setup JDK 21
36+
uses: actions/setup-java@v4
37+
with:
38+
distribution: adopt
39+
java-version: 21
40+
cache: maven
41+
42+
# Initializes the CodeQL tools for scanning.
43+
- name: Initialize CodeQL
44+
uses: github/codeql-action/init@v3
45+
with:
46+
languages: ${{ matrix.language }}
47+
build-mode: ${{ matrix.build-mode }}
48+
49+
- name: Perform CodeQL Analysis
50+
uses: github/codeql-action/analyze@v3
51+
with:
52+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)