Skip to content

Added a github action workflow for running unit tests when creating a… #1

Added a github action workflow for running unit tests when creating a…

Added a github action workflow for running unit tests when creating a… #1

Workflow file for this run

name: Run Unit Tests

Check failure on line 1 in .github/workflows/run_unit_tests.yaml

View workflow run for this annotation

GitHub Actions / Run Unit Tests

Invalid workflow file

The workflow is not valid. .github/workflows/run_unit_tests.yaml (Line: 3, Col: 11): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
run-name: ${{ github.actor {} is making a pull request
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up JDK 1.17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Build
run: mvn --batch-mode -DskipTests package
- name: Test
run: mvn --batch-mode -Dmaven.test.failure.ignore=true test
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Maven Tests
path: target/surefire-reports/*.xml
reporter: java-junit
fail-on-error: true