Skip to content

Commit b817dc7

Browse files
authored
Merge pull request #15 from cloudwego/use-default
chore: update workflow to use github by default
2 parents 925aeda + 175f28d commit b817dc7

2 files changed

Lines changed: 28 additions & 17 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ on: [ pull_request ]
44

55
jobs:
66
compliant:
7-
runs-on: [ self-hosted, X64 ]
7+
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010

1111
- name: Check License Header
1212
uses: apache/skywalking-eyes/header@v0.4.0
@@ -17,11 +17,11 @@ jobs:
1717
uses: crate-ci/typos@master
1818

1919
staticcheck:
20-
runs-on: [ self-hosted, X64 ]
20+
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Set up Go
24-
uses: actions/setup-go@v3
24+
uses: actions/setup-go@v5
2525
with:
2626
go-version: "1.22"
2727

@@ -45,11 +45,11 @@ jobs:
4545
staticcheck_flags: -checks=inherit,-SA1029
4646

4747
lint:
48-
runs-on: [ self-hosted, X64 ]
48+
runs-on: ubuntu-latest
4949
steps:
50-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
5151
- name: Set up Go
52-
uses: actions/setup-go@v3
52+
uses: actions/setup-go@v5
5353
with:
5454
go-version: "1.22"
5555

.github/workflows/tests.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,32 @@ on: [ push, pull_request ]
44

55
jobs:
66
unit-benchmark-test:
7-
strategy:
8-
matrix:
9-
go: [ "1.18", "1.19", "1.20", "1.21", "1.22" ]
10-
os: [ X64 ]
11-
runs-on: ${{ matrix.os }}
7+
runs-on: ubuntu-latest
128
steps:
13-
- uses: actions/checkout@v3
14-
9+
- uses: actions/checkout@v4
1510
- name: Set up Go
16-
uses: actions/setup-go@v3
11+
uses: actions/setup-go@v5
1712
with:
18-
go-version: ${{ matrix.go }}
13+
go-version: "1.22"
1914

2015
- name: Unit Test
2116
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...
2217

2318
- name: Benchmark
2419
run: go test -bench=. -benchmem -run=none ./...
20+
21+
compatibility-test:
22+
strategy:
23+
matrix:
24+
go: [ "1.19", "1.20", "1.21", "1.22" ]
25+
os: [ X64, ARM64 ]
26+
runs-on: ${{ matrix.os }}
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up Go
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version: ${{ matrix.go }}
33+
cache: false # don't use cache for self-hosted runners
34+
- name: Unit Test
35+
run: go test -race -covermode=atomic ./...

0 commit comments

Comments
 (0)