-
Notifications
You must be signed in to change notification settings - Fork 1.8k
34 lines (33 loc) · 1.13 KB
/
on-demand-log-poller.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
name: On Demand Log Poller Consistency Test
on:
workflow_dispatch:
inputs:
base64Config:
description: base64-ed config
required: true
type: string
jobs:
test:
env:
REF_NAME: ${{ github.head_ref || github.ref_name }}
runs-on: ubuntu20.04-8cores-32GB
steps:
- name: Add masks and export base64 config
run: |
BASE64_CONFIG_OVERRIDE=$(jq -r '.inputs.base64Config' $GITHUB_EVENT_PATH)
echo ::add-mask::$BASE64_CONFIG_OVERRIDE
echo "BASE64_CONFIG_OVERRIDE=$BASE64_CONFIG_OVERRIDE" >> $GITHUB_ENV
- name: Checkout the repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ env.REF_NAME }}
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: "integration-tests/go.mod"
cache: true
- name: Run tests
run: |
cd integration-tests
go mod download
go test -v -timeout 5h -v -count=1 -run ^TestLogPollerFewFiltersFixedDepth$ ./smoke/log_poller_test.go