mirror of
https://github.com/SonarSource/sonarqube-quality-gate-action.git
synced 2026-09-23 13:38:32 +00:00
27 lines
737 B
YAML
27 lines
737 B
YAML
name: Unit Tests
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
run-unit-tests:
|
|
name: Run Unit Tests
|
|
runs-on: github-ubuntu-latest-s
|
|
steps:
|
|
- name: checkout action
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
path: main
|
|
fetch-depth: 0
|
|
- name: checkout bats-core
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
path: bats-core
|
|
repository: bats-core/bats-core
|
|
fetch-depth: 0
|
|
- name: Install BATS test framework
|
|
run:
|
|
sudo ./bats-core/install.sh /usr/local
|
|
- name: Execute BATS tests
|
|
run:
|
|
cd main && bats test/check-quality-gate-test.bats
|