Skip to content

Commit ad5c92b

Browse files
chore: sync from ark-apis e50e82eb7f
Auto-generated SDK sync from ark-apis at e50e82eb7f18fd9af1ab1b707a56799ca288fd1c. Generated files are overwritten by the sync pipeline and should not be edited by hand. Sync-Source-Commit: e04af65d5c374d0c6d5a8b9e03121d9dbdd60240 Ark-APIs-Commit: e50e82eb7f18fd9af1ab1b707a56799ca288fd1c
1 parent 8897d20 commit ad5c92b

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Go CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
# A workflow added by a pull request is not loaded from the base branch for
8+
# that pull_request event. Running the workflow from ark-hand's same-repo
9+
# sync branch makes the first workflow-installation PR testable as well.
10+
push:
11+
branches:
12+
- "sync/**"
13+
paths:
14+
- ".github/workflows/ci.yml"
15+
16+
permissions:
17+
contents: read
18+
19+
concurrency:
20+
group: go-ci-${{ github.event.pull_request.number || github.ref }}
21+
cancel-in-progress: true
22+
23+
jobs:
24+
go-ci:
25+
name: Go CI
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 15
28+
29+
steps:
30+
- name: Check out repository
31+
uses: actions/checkout@v4
32+
33+
- name: Set up Go
34+
uses: actions/setup-go@v5
35+
with:
36+
go-version: "1.22.x"
37+
cache: true
38+
39+
- name: Download modules
40+
run: go mod download
41+
42+
- name: Build
43+
run: go build ./...
44+
45+
- name: Test
46+
run: go test ./...
47+
48+
- name: Vet
49+
run: go vet ./...
50+
51+
- name: Lint
52+
uses: golangci/golangci-lint-action@v6
53+
with:
54+
version: v1.64.8
55+
args: --timeout=5m --concurrency=8 --issues-exit-code=1

0 commit comments

Comments
 (0)