SONAR-14825 Provide Quality Gate check GitHub Action

This commit is contained in:
Jacek committed 2021-05-14 09:04:32 +02:00
commit 388210fd6e
9 files changed
+496

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
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