-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.09 KB
/
continuous-integration.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
name: Continuous Integration
on:
push:
branches-ignore:
- main
permissions:
contents: read
packages: read
concurrency:
group: "${{ github.workflow }}-${{ github.ref != 'refs/heads/main' && github.ref || github.run_id }}"
cancel-in-progress: true
jobs:
build-and-run-tests:
name: Build and Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: one
run: echo "github.actor is ${{ github.actor }} and github.token is ${{ github.token }}"
- name: two
run: echo "GITHUB_ACTOR is ${GITHUB_ACTOR} and GITHUB_TOKEN is ${GITHUB_TOKEN}"
- name: three
run: echo "secrets actor is ${{ secrets.GITHUB_ACTOR }} and secrets token is ${{ secrets.GITHUB_TOKEN }}"
- name: Run Maven
run: mvn -B clean verify
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}