Skip to content

Commit 6725aa7

Browse files
author
Felix021
authored
Merge pull request #73 from DMwangnima/ci_migrate
CI: migrate tests and update github action
2 parents 016c9d2 + 612a73d commit 6725aa7

File tree

129 files changed

+38
-42839
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+38
-42839
lines changed

.github/workflows/tests.yml

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,40 @@ name: Tests
33
on: [ push, pull_request ]
44

55
jobs:
6+
integration-test:
7+
runs-on: [ self-hosted, X64 ]
8+
steps:
9+
- uses: actions/checkout@v3
10+
11+
- name: Set up Go
12+
uses: actions/setup-go@v3
13+
with:
14+
go-version: '1.17'
15+
16+
- name: Set up Java
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: 'zulu'
20+
java-version: 8
21+
22+
- name: Set up Maven
23+
uses: stCarolas/setup-maven@v4.5
24+
with:
25+
maven-version: 3.9.4
26+
27+
- name: Run Test
28+
run: |
29+
cd ..
30+
rm -rf codec-dubbo-tests
31+
git clone https://github.com/kitex-contrib/codec-dubbo-tests.git
32+
cd codec-dubbo-tests
33+
./run.sh ${{ github.workspace }}
34+
cd ${{ github.workspace }}
35+
636
unit-benchmark-test:
737
strategy:
838
matrix:
9-
go: [ 1.17, 1.18, 1.19 ]
39+
go: [ '1.17', '1.18', '1.19', '1.20', '1.21' ]
1040
os: [ X64, ARM64 ]
1141
runs-on: ${{ matrix.os }}
1242
steps:
@@ -17,13 +47,13 @@ jobs:
1747
with:
1848
go-version: ${{ matrix.go }}
1949

20-
# block scenario, comment temporarily
21-
# - uses: actions/cache@v3
22-
# with:
23-
# path: ~/go/pkg/mod
24-
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
25-
# restore-keys: |
26-
# ${{ runner.os }}-go-
50+
# block scenario, comment temporarily
51+
# - uses: actions/cache@v3
52+
# with:
53+
# path: ~/go/pkg/mod
54+
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
55+
# restore-keys: |
56+
# ${{ runner.os }}-go-
2757

2858
- name: Unit Test
2959
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,4 @@ output/*
2929
.vscode
3030

3131
# Maven generated files
32-
/tests/dubbo-java/target/
3332
/samples/helloworld/dubbo/target
34-
35-
# Automatically pulled files
36-
tests/kitex/java.thrift

tests/benchmark/README.md

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

tests/benchmark/deploy.sh

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

tests/benchmark/dubbo/client/client.go

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

0 commit comments

Comments
 (0)