-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.32 KB
/
checks.yml
File metadata and controls
51 lines (42 loc) · 1.32 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
name: Checks
on:
push:
branches: ["**"]
permissions:
contents: read
packages: read
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [24]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: "temurin"
cache: "maven"
- name: Set up settings.xml
run: |
mkdir -p ~/.m2
echo '<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username>${{ secrets.GH_USERNAME }}</username>
<password>${{ secrets.GH_TOKEN }}</password>
</server>
</servers>
</settings>' > ~/.m2/settings.xml
- name: Build with Maven
run: mvn clean compile
- name: Run
run: mvn exec:java -Dexec.mainClass="com.example.App"