Skip to content

Commit

Permalink
ci: split multiple SDKs test to diffrent CI scripts
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Apr 15, 2024
1 parent 6337a76 commit 74fb0dc
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 37 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: go-test

on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Go code test
run: go test ./...
50 changes: 13 additions & 37 deletions .github/workflows/ci.yaml → .github/workflows/java-test.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,24 @@
name: CI
name: java-test

on:
pull_request:
push:
branches:
- main
- "releases/*"
- master
tags:
- '*'
pull_request:
branches:
- main
paths:
- "java/**"
workflow_dispatch:

permissions:
contents: read

jobs:
rust-test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74
override: true
components: clippy, rustfmt
- name: Rust code test
run: cargo test

go-test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Go code test
run: go test ./...

java-test:
test:
permissions:
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
contents: read # for actions/checkout to fetch code
Expand Down Expand Up @@ -118,4 +94,4 @@ jobs:
with:
name: java-artifact-${{ matrix.classifier }}
path: |
java/target/*.jar
java/target/*.jar
32 changes: 32 additions & 0 deletions .github/workflows/rust-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: rust-test

on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
rust-test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74
override: true
components: clippy, rustfmt
- name: Rust code test
run: cargo test

0 comments on commit 74fb0dc

Please sign in to comment.