forked from angrodboh/Conv1-23
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.65 KB
/
CHR8486.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
name: (CI) - Building and testing the project
on:
workflow_dispatch:
push:
branches: [ main, CHR8486 ]
pull_request:
types: [ opened, synchronize, reopened, closed, edited ]
branches: [ main, CHR8486 ]
jobs:
assemble:
runs-on: ubuntu-latest
env:
GITHUB_LOGIN: ${{ github.actor }}
GITHUB_PACKAGES: ${{ secrets.GITHUB_TOKEN }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: This step creates a copy of the repository for the workflow to run on
uses: actions/checkout@v3
- name: This step sets up java on the machine running this workflow
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '16'
- name: Assembling the gradle project
run: |
chmod +x gradlew
./gradlew assemble
test:
runs-on: ubuntu-latest
needs: assemble
env:
GITHUB_LOGIN: ${{ github.actor }}
GITHUB_PACKAGES: ${{ secrets.GITHUB_TOKEN }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: This step creates a copy of the repository for the workflow to run on
uses: actions/checkout@v3
- name: This step sets up java on the machine running this workflow
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '16'
- name: Testing the gradle project.
run: |
chmod +x gradlew
./gradlew test