This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
Daily scheduled extended Go tests #1360
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily scheduled extended Go tests | |
defaults: | |
run: | |
shell: bash --noprofile --norc -eo pipefail {0} | |
on: | |
push: | |
branches: [force_test, release-*] | |
schedule: | |
- cron: "6 0 * * *" | |
env: | |
golang-version: 1.19.4 | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Set up Go ${{ env.golang-version }} | |
uses: actions/setup-go@v3.5.0 | |
with: | |
go-version: ${{ env.golang-version }} | |
id: go | |
- name: Use Go module caching | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Build | |
run: make build | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Checkout LFS objects | |
run: git lfs checkout | |
- name: Set up Go ${{ env.golang-version }} | |
uses: actions/setup-go@v3.5.0 | |
with: | |
go-version: ${{ env.golang-version }} | |
id: go | |
- name: Use Go module caching | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Test extended dataset | |
run: go test -v -race -timeout=30m ./pkg/tests/end_to_end_tests/ -extended-test |