-
Notifications
You must be signed in to change notification settings - Fork 567
77 lines (67 loc) · 1.64 KB
/
Copy pathgo.yml
File metadata and controls
77 lines (67 loc) · 1.64 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: XGo CI
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Check goreleaser files
run: |
pip install --no-input pyyaml
python .github/workflows/check_goreleaser_config.py
TestXGoInstaller:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Test XGo installer
run: |
git config --global user.email "build-robot@xgo.dev"
git config --global user.name "build robot"
go test -v cmd/make_test.go
Test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
go:
- 1.24.x
- 1.25.x
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}
- name: Run testcases
run: |
go test -v -coverprofile="coverage.txt" -covermode=atomic ./...
cd cl; go test -tags=genjs -v .
- name: Codecov
uses: codecov/codecov-action@v7
with:
slug: goplus/xgo
FormatCheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.24.2"
- name: Check formatting
run: |
if [ -n "$(go fmt ./... | grep -v xgo_autogen)" ]; then
echo "Some files are not properly formatted. Please run 'go fmt ./...'"
exit 1
fi
./all.bash
cd cmd/xgo; xgo fmt -t ./...