-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (30 loc) · 952 Bytes
/
acceptance.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
name: acceptance
on:
workflow_dispatch:
schedule:
- cron: '30 9 * * 3' # run at 09:30 UTC every wednesday
push:
branches: [ main ]
pull_request:
types: [labeled]
branches: [ main ]
jobs:
test:
if: ${{ github.event_name == 'push' || github.event.label.name == 'run-acceptance-tests' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
name: Acceptance
container:
# See: actions/checkout#956
# `24-build` uses the `heroku` user by default.
image: heroku/heroku:24-build
options: --user root
runs-on: ubuntu-latest
env:
SLUGCMPLR_ACC: "true"
SLUGCMPLR_ACC_HEROKU_PASS: ${{ secrets.SLUGCMPLR_HEROKU_API_KEY }}
SLUGCMPLR_ACC_HEROKU_EMAIL: ${{ secrets.SLUGCMPLR_HEROKU_EMAIL }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.17.x
- run: go test -v -race -parallel=4 ./...