aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/nightly-qa.yml
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2020-02-24 08:51:22 +0100
committerSonarTech <sonartech@sonarsource.com>2020-02-26 10:41:19 +0100
commitde81d241bdd741d1c417eeef2bf48edbdb4b2efc (patch)
treef3e7bb20860761e5b408a3e0a12416325ad30475 /.github/workflows/nightly-qa.yml
parent97956bd992c2c949ea4dd69abaab4982521ba56d (diff)
downloadsonarqube-de81d241bdd741d1c417eeef2bf48edbdb4b2efc.tar.gz
sonarqube-de81d241bdd741d1c417eeef2bf48edbdb4b2efc.zip
BUILD-758 Migrate nightly build task to GH actions
Diffstat (limited to '.github/workflows/nightly-qa.yml')
-rw-r--r--.github/workflows/nightly-qa.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/nightly-qa.yml b/.github/workflows/nightly-qa.yml
new file mode 100644
index 00000000000..d9ac507310b
--- /dev/null
+++ b/.github/workflows/nightly-qa.yml
@@ -0,0 +1,29 @@
+name: Nightly QA
+on:
+ schedule:
+ # at 1:30 daily
+ - cron: "30 1 * * *"
+jobs:
+ nightly:
+ # prevent job to run on public repository sonarsource/sonarqube
+ if: github.repository == 'sonarsource/sonar-enterprise'
+ runs-on: ubuntu-latest
+ name: Trigger the nightly QA build
+ steps:
+ - name: Fetch code
+ uses: actions/checkout@v2
+ with:
+ token: ${{ secrets.GITHUB_ORG_TOKEN }}
+ ref: branch-nightly-build
+ path: repo
+ - name: Trigger nightly build
+ run: |
+ cd repo/
+ ./private/trigger-nightly-build.sh
+ - name: Notify failures on Slack
+ if: failure()
+ uses: Ilshidur/action-slack@2.0.0
+ env:
+ SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
+ with:
+ args: "Nightly QA failed, see the logs at https://github.com/SonarSource/sonar-enterprise/actions"