Skip to content

Commit 1b54a35

Browse files
committed
attempt to fix lint/test job
1 parent a538a8e commit 1b54a35

File tree

3 files changed

+59
-59
lines changed

3 files changed

+59
-59
lines changed

.github/workflows/job_lint.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ on:
44
pull_request:
55
types: [opened, reopened, synchronize]
66
branches:
7-
- master
8-
- v3
9-
- v4
7+
- master
8+
- v3
9+
- v4
1010

1111
jobs:
1212
lint:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: checkout code
16-
uses: actions/checkout@v4
17-
with:
18-
filter: 'blob:none'
19-
- name: setup go
20-
uses: actions/setup-go@v5
21-
with:
22-
cache-dependency-path: "**/*.sum"
23-
go-version: 'stable'
24-
- name: setup deps
25-
run: go get -v ./...
26-
- name: run lint
27-
uses: https://github.com/golangci/golangci-lint-action@v6
28-
with:
29-
version: 'latest'
15+
- name: checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
filter: 'blob:none'
19+
- name: setup go
20+
uses: actions/setup-go@v5
21+
with:
22+
cache-dependency-path: "**/*.sum"
23+
go-version: 'stable'
24+
- name: setup deps
25+
run: go get -v ./...
26+
- name: run lint
27+
uses: golangci/golangci-lint-action@v6
28+
with:
29+
version: 'latest'

.github/workflows/job_tests.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,50 @@ on:
44
pull_request:
55
types: [opened, reopened, synchronize]
66
branches:
7-
- master
8-
- v3
9-
- v4
7+
- master
8+
- v3
9+
- v4
1010
push:
1111
branches:
12-
- master
13-
- v3
14-
- v4
12+
- master
13+
- v3
14+
- v4
1515

1616
jobs:
1717
test:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- name: checkout code
21-
uses: actions/checkout@v4
22-
with:
23-
filter: 'blob:none'
24-
- name: checkout tests
25-
uses: actions/checkout@v4
26-
with:
27-
ref: master
28-
filter: 'blob:none'
29-
repository: unistack-org/micro-tests
30-
path: micro-tests
31-
- name: setup go
32-
uses: actions/setup-go@v5
33-
with:
34-
cache-dependency-path: "**/*.sum"
35-
go-version: 'stable'
36-
- name: setup go work
37-
env:
38-
GOWORK: /workspace/${{ github.repository_owner }}/go.work
39-
run: |
40-
go work init
41-
go work use .
42-
go work use micro-tests
43-
- name: setup deps
44-
env:
45-
GOWORK: /workspace/${{ github.repository_owner }}/go.work
46-
run: go get -v ./...
47-
- name: run tests
48-
env:
49-
INTEGRATION_TESTS: yes
50-
GOWORK: /workspace/${{ github.repository_owner }}/go.work
51-
run: |
52-
cd micro-tests
53-
go test -mod readonly -v ./... || true
20+
- name: checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
filter: 'blob:none'
24+
- name: checkout tests
25+
uses: actions/checkout@v4
26+
with:
27+
ref: master
28+
filter: 'blob:none'
29+
repository: unistack-org/micro-tests
30+
path: micro-tests
31+
- name: setup go
32+
uses: actions/setup-go@v5
33+
with:
34+
cache-dependency-path: "**/*.sum"
35+
go-version: 'stable'
36+
- name: setup go work
37+
env:
38+
GOWORK: ${{ github.workspace }}/go.work
39+
run: |
40+
go work init
41+
go work use .
42+
go work use micro-tests
43+
- name: setup deps
44+
env:
45+
GOWORK: ${{ github.workspace }}/go.work
46+
run: go get -v ./...
47+
- name: run tests
48+
env:
49+
INTEGRATION_TESTS: yes
50+
GOWORK: ${{ github.workspace }}/go.work
51+
run: |
52+
cd micro-tests
53+
go test -mod readonly -v ./... || true

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
run:
22
concurrency: 8
3-
deadline: 5m
3+
timeout: 5m
44
issues-exit-code: 1
55
tests: true

0 commit comments

Comments
 (0)