mirror of
https://github.com/SonarSource/sonarqube-quality-gate-action.git
synced 2026-09-23 13:38:32 +00:00
29 lines
690 B
YAML
29 lines
690 B
YAML
name: Execute tests
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
run-unit-tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout action
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: main
|
|
fetch-depth: 0
|
|
- name: checkout bats-core
|
|
uses: actions/checkout@v2
|
|
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
|