-
Notifications
You must be signed in to change notification settings - Fork 2
executable file
·60 lines (52 loc) · 1.58 KB
/
ci-build.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
name: Iceaxe-CI
on: [push, pull_request, workflow_dispatch]
jobs:
Build:
runs-on: [self-hosted, docker]
permissions:
checks: write
timeout-minutes: 30
container:
image: ghcr.io/project-tsurugi/oltp-sandbox:ubuntu-22.04
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
volumes:
- ${{ vars.gradle_cache_dir }}:/root/.gradle
defaults:
run:
shell: bash
env:
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
GPR_USER: ${{ github.repository_owner }}
GPR_KEY: ${{ secrets.GHCR_PAT }}
steps:
- name: Setup_Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GHA_PAT }}
- name: Assemble
run: |
./gradlew -i iceaxe-core:showTsubakuroManifest clean assemble
- name: Check
run: |
./gradlew -i check -x :iceaxe-dbtest:check --continue
- name: Verify
uses: project-tsurugi/tsurugi-annotations-action@v1
if: always()
with:
junit_input: '**/build/test-results/**/TEST-*.xml'
spotbugs_input: '**/build/reports/spotbugs/main/*.xml'
checkstyle_input: '**/build/reports/checkstyle/main.xml'
Publish:
uses: ./.github/workflows/ci-publish.yml
if: (contains(github.ref, '/tags/') || contains(github.ref, '/heads/master'))
needs: Build
secrets: inherit
permissions:
packages: write