Skip to content

Commit b89246b

Browse files
authored
[v3] rename .gitea to .github (#149)
* rename .gitea to .github * attempt to fix lint/test job
1 parent a9829b5 commit b89246b

File tree

10 files changed

+83
-83
lines changed

10 files changed

+83
-83
lines changed

.gitea/workflows/job_lint.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.gitea/workflows/job_tests.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.
File renamed without changes.

.gitea/ISSUE_TEMPLATE/feature-request---enhancement.md renamed to .github/ISSUE_TEMPLATE/feature-request---enhancement.md

File renamed without changes.
File renamed without changes.
File renamed without changes.

.github/workflows/job_lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: lint
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
branches:
7+
- master
8+
- v3
9+
- v4
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
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: golangci/golangci-lint-action@v6
28+
with:
29+
version: 'latest'

.github/workflows/job_tests.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: test
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
branches:
7+
- master
8+
- v3
9+
- v4
10+
push:
11+
branches:
12+
- master
13+
- v3
14+
- v4
15+
16+
jobs:
17+
test:
18+
runs-on: ubuntu-latest
19+
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: ${{ 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)