👷 ci: migrate from Forgejo to GitHub Actions
Changes
3 files changed, +36 -40
DELETE
.forgejo/workflows/ci.yml
+0 -39
@@ -1,39 +0,0 @@
1
-name: CI
2
-
3
-on:
4
- push:
5
- branches: [main]
6
- pull_request:
7
-
8
-jobs:
9
- jvm-tests:
10
- runs-on: docker
11
- container:
12
- image: eclipse-temurin:21-jdk
13
- steps:
14
- - uses: actions/checkout@v4
15
- - name: Cache Maven repository
16
- uses: actions/cache@v4
17
- with:
18
- path: ~/.m2/repository
19
- key: maven-${{ hashFiles('pom.xml') }}
20
- - name: Run JVM tests
21
- run: ./mvnw -B test
22
-
23
- native-build-and-smoke:
24
- # Native build + native integration tests gate every main-branch build
25
- # so native-image regressions surface at merge time, not release time.
26
- if: github.ref == 'refs/heads/main'
27
- runs-on: docker
28
- container:
29
- image: eclipse-temurin:21-jdk
30
- needs: jvm-tests
31
- steps:
32
- - uses: actions/checkout@v4
33
- - name: Cache Maven repository
34
- uses: actions/cache@v4
35
- with:
36
- path: ~/.m2/repository
37
- key: maven-${{ hashFiles('pom.xml') }}
38
- - name: Native build + integration smoke tests
39
- run: ./mvnw -B verify -Dnative -Dquarkus.native.container-build=true
ADD
.github/workflows/ci.yml
+35 -0
@@ -0,0 +1,35 @@
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+jobs:
9
+ jvm-tests:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-java@v4
14
+ with:
15
+ distribution: temurin
16
+ java-version: '21'
17
+ cache: maven
18
+ - name: Run JVM tests
19
+ run: ./mvnw -B test
20
+
21
+ native-build-and-smoke:
22
+ # Native build + native integration tests gate every main-branch build
23
+ # so native-image regressions surface at merge time, not release time.
24
+ if: github.ref == 'refs/heads/main'
25
+ runs-on: ubuntu-latest
26
+ needs: jvm-tests
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - uses: actions/setup-java@v4
30
+ with:
31
+ distribution: temurin
32
+ java-version: '21'
33
+ cache: maven
34
+ - name: Native build + integration smoke tests
35
+ run: ./mvnw -B verify -Dnative -Dquarkus.native.container-build=true
MODIFY
README.md
+1 -1
@@ -62,5 +62,5 @@
62
62
63
63
## CI
64
64
65
-`.forgejo/workflows/ci.yml`: JVM tests on every push/PR; native build + native smoke tests
65
+`.github/workflows/ci.yml`: JVM tests on every push/PR; native build + native smoke tests
66
66
gate main-branch builds.