-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 1.1 KB
/
unit-tests.yml
File metadata and controls
42 lines (37 loc) · 1.1 KB
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
name: Tests
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
tests:
name: Unit Tests
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- id: action
uses: ./
with:
commands: |
mvn -B verify -P all-tests checkstyle:checkstyle -Dcheckstyle.skip=false
dir: backend
java-distribution: temurin
java-version: "17"
repository: bcgov/nr-forest-client
sonar_args: >
-Dsonar.exclusions=**/coverage/**
-Dsonar.organization=bcgov-nr
-Dsonar.projectKey=action-test-and-analyse-java
sonar_token: ${{ secrets.SONAR_TOKEN }}
- name: Check triggered output
run: |
echo "Triggered: ${{ steps.action.outputs.triggered }}"
if [ "${{ steps.action.outputs.triggered }}" != "true" ]; then
echo "❌ Expected 'true' but got: ${{ steps.action.outputs.triggered }}"
exit 1
fi