Skip to content

Update main.yml

Update main.yml #43

Workflow file for this run

name: "Automated Tests"
on: [push, pull_request]
permissions:
id-token: write
contents: read
checks: write
jobs:
build:
name: BATS tests
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: 'true'
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}/test/
ls ${{ github.workspace }}/test/test_helper
- run: echo "This job's status is ${{ job.status }}."
- name: Test
run: test/bats/bin/bats test/*.bats --formatter junit > report.xml
- name: Output report file
run: cat report.xml
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Maven Tests
path: report.xml
reporter: java-junit
fail-on-error: true