-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (42 loc) · 1.26 KB
/
testing.yml
File metadata and controls
52 lines (42 loc) · 1.26 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
name: Testing
# Trigger on pushes, PRs (excluding documentation changes), and nightly.
on:
push:
branches: [ master, main ]
pull_request:
schedule:
- cron: 0 0 * * * # daily at 00:00
workflow_dispatch:
permissions:
contents: read
jobs:
test:
strategy:
matrix:
go-version: [ 1.24.x ]
os: [ ubuntu-latest, windows-latest ]
targetplatform: [ x86, x64 ]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- name: Checkout Code
uses: actions/checkout@v6
- name: Vet
run: go vet ./...
- name: Unittest
run: go test -v -timeout 30m -race ./... -coverprofile=coverage.txt
-covermode=atomic
- name: Functest
# On Linux (ubuntu-latest), the default shell is bash.
# On Windows (windows-latest), we must explicitly specify 'bash'
# to run a bash script, often through the bundled Git Bash environment.
shell: bash
run: ./test/functest/run.sh
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: tableauio/tableau