-
Notifications
You must be signed in to change notification settings - Fork 34
75 lines (65 loc) · 2.04 KB
/
gradle-weekly-tests.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Weekly Tests
on:
schedule:
- cron: "0 4 * * 1"
workflow_dispatch:
jobs:
tests:
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-med
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Test Environment
uses: ./.github/actions/setup-environment
with:
rust-corset: true
- name: Run Weekly tests
run: ./gradlew weeklyTests
env:
JAVA_OPTS: -Dorg.gradle.daemon=false
CORSET_FLAGS: fields,expand,expand,expand
WEEKLY_TESTS_PARALLELISM: 4
- name: Upload test report
if: always()
uses: actions/upload-artifact@v3
with:
name: nightly-tests-report
path: build/reports/tests/**/*
- name: Failure Notification
if: ${{ failure() || cancelled() }}
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
name: "Weekly (Go-Corset)"
status: "${{ job.status }}"
go-corset-tests:
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-xxl
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Test Environment
uses: ./.github/actions/setup-environment
with:
go-corset: true
- name: Run Weekly tests
run: GOMEMLIMIT=196GiB ./gradlew weeklyTests
env:
JAVA_OPTS: -Dorg.gradle.daemon=false
CORSET_FLAGS: disable
GOCORSET_FLAGS: -wd --ansi-escapes=false --report --air
- name: Failure Notification
if: ${{ failure() || cancelled() }}
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
name: "Weekly (Go-Corset)"
status: "${{ job.status }}"