Skip to content

Commit

Permalink
Merge pull request #73 from DMwangnima/ci_migrate
Browse files Browse the repository at this point in the history
CI: migrate tests and update github action
  • Loading branch information
felix021 authored Dec 22, 2023
2 parents 016c9d2 + 612a73d commit 6725aa7
Show file tree
Hide file tree
Showing 129 changed files with 38 additions and 42,839 deletions.
46 changes: 38 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,40 @@ name: Tests
on: [ push, pull_request ]

jobs:
integration-test:
runs-on: [ self-hosted, X64 ]
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.17'

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

- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.9.4

- name: Run 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 }}
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 @@ -17,13 +47,13 @@ jobs:
with:
go-version: ${{ matrix.go }}

# block scenario, comment temporarily
# - uses: actions/cache@v3
# with:
# path: ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
# block scenario, comment temporarily
# - uses: actions/cache@v3
# with:
# path: ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-

- name: Unit Test
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...
Expand Down
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 6725aa7

Please sign in to comment.