mirror of
https://github.com/SonarSource/sonarqube-quality-gate-action.git
synced 2026-10-02 01:41:31 +00:00
SONAR-14825 Provide Quality Gate check GitHub Action
This commit is contained in:
commit
388210fd6e
9 files changed
+496
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user