Skip to content

chore(deps): update bcgov/action-diff-triggers action to v1.1.1 #152

chore(deps): update bcgov/action-diff-triggers action to v1.1.1

chore(deps): update bcgov/action-diff-triggers action to v1.1.1 #152

Workflow file for this run

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