-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (38 loc) · 1013 Bytes
/
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
name: Build master
on:
push:
branches:
- master # Push events on master branch
paths-ignore:
- '**.md'
- '**.MD'
- '.gitignore'
- 'LICENCE'
- 'CODEOWNERS'
jobs:
build:
name: Checkout code and run tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Set up Java 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
architecture: x64
cache: 'gradle'
- name: Build gradle artifacts
shell: bash
run: |
./gradlew shadowJar
env:
ORG_GRADLE_PROJECT_githubUser: x-access-token
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
env:
ORG_GRADLE_PROJECT_githubUser: x-access-token
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew test