Skip to content

Commit

Permalink
CI: migrate tests and update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
DMwangnima committed Dec 22, 2023
1 parent 016c9d2 commit 494ae31
Show file tree
Hide file tree
Showing 129 changed files with 21 additions and 42,832 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
unit-benchmark-test:
strategy:
matrix:
go: [ 1.17, 1.18, 1.19 ]
go: [ '1.17', '1.18', '1.19', '1.20', '1.21' ]
os: [ X64, ARM64 ]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -25,8 +25,28 @@ jobs:
# restore-keys: |
# ${{ runner.os }}-go-

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 8

- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.4

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

- name: Integrated Test
run: |
cd ..
rm -rf codec-dubbo-tests
git clone https://github.com/kitex-contrib/codec-dubbo-tests.git
cd codec-dubbo-tests
./run.sh ${{ github.workspace }}
cd ${{ github.workspace }}
- name: Benchmark
run: go test -bench=. -benchmem -run=none ./...
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,4 @@ output/*
.vscode

# Maven generated files
/tests/dubbo-java/target/
/samples/helloworld/dubbo/target

# Automatically pulled files
tests/kitex/java.thrift
136 changes: 0 additions & 136 deletions tests/benchmark/README.md

This file was deleted.

113 changes: 0 additions & 113 deletions tests/benchmark/deploy.sh

This file was deleted.

72 changes: 0 additions & 72 deletions tests/benchmark/dubbo/client/client.go

This file was deleted.

Loading

0 comments on commit 494ae31

Please sign in to comment.