-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (37 loc) · 1.52 KB
/
integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Integration Tests
# Runs on every pr pushed
# on:
# push:
# branches: [ "main" ]
# pull_request:
# The branches below must be a subset of the branches above
# branches: [ "main" ]
# Runs on schedule at 9am UTC, Monday to Friday everyday
on:
schedule:
- cron: '0 9 * * 1-5'
permissions:
contents: read
jobs:
run_integration_tests:
runs-on: [self-hosted, linux, x64, integration, arc, 12gen]
steps:
- name: Cleanup repo build folder
run: |
ls -la ./
sudo rm -rf ./* || true
sudo rm -rf ./.??* || true
ls -la ./
- name: Checkout code
uses: actions/checkout@v3
- name: run integration tests
run: |
make run-smoke-tests
- name: success
if: success()
run: |
curl --location --request POST ${{ secrets.DISCORD_INTEGRATION }} --header 'Content-Type: application/json' --data-raw '{"embeds": [{"title": "Success: ${{ github.run_number }}","url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}","color": 65280}]}'
- name: failure
if: failure()
run: |
curl --location --request POST ${{ secrets.DISCORD_INTEGRATION }} --header 'Content-Type: application/json' --data-raw '{"embeds": [{"title": "Failure: ${{ github.run_number }}","url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}","color": 16711680}]}'