forked from gastownhall/gastown
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.88 KB
/
nightly-integration.yml
File metadata and controls
61 lines (48 loc) · 1.88 KB
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
name: Nightly Integration Tests
on:
schedule:
- cron: '0 6 * * *' # 06:00 UTC daily
workflow_dispatch: # Allow manual triggering
jobs:
integration-full:
name: Full Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
with:
go-version: '1.26'
cache: true
- name: Configure Git
run: |
git config --global user.name "CI Bot"
git config --global user.email "ci@gastown.test"
- name: Cache beads (bd)
id: cache-beads
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
with:
path: ~/go/bin/bd
key: beads-nightly-${{ hashFiles('.github/workflows/nightly-integration.yml') }}
- name: Install beads (bd)
if: steps.cache-beads.outputs.cache-hit != 'true'
run: go install github.com/steveyegge/beads/cmd/bd@v0.55.4
- name: Install Dolt
run: |
curl -sL https://github.com/dolthub/dolt/releases/latest/download/dolt-linux-amd64.tar.gz | tar xz
mv dolt-linux-amd64/bin/dolt ~/go/bin/dolt
- name: Pre-pull Dolt Docker image
run: docker pull dolthub/dolt-sql-server:1.83.0
- name: Add to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Configure Dolt
run: |
dolt config --global --add user.name "CI Bot"
dolt config --global --add user.email "ci@gastown.test"
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Build
run: go build -v ./cmd/gt
- name: Run all integration tests
run: gotestsum --format testname --junitfile junit.xml -- -v -tags=integration -timeout=20m ./...