Skip to content

Upgrade-actions-version (#5) #23

Upgrade-actions-version (#5)

Upgrade-actions-version (#5) #23

Workflow file for this run

name: Unit Test
on:
push:
paths:
- 'scripts/**'
jobs:
Bats-Test:
runs-on: 'ubuntu-latest'
permissions:
id-token: write
contents: read
checks: write
steps:
- uses: actions/checkout@v3
name: Checkout
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: google-github-actions/[email protected]
with:
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
- name: Setup BATS
run: npm install -g bats
- name: Run The Tests
run: cd scripts && bats . --timing --report-formatter junit && cp report.xml ../
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: JUNIT Tests # Name of the check run which will be created
path: report.xml # Path to test results
reporter: java-junit # Format of test results