Skip to content

Commit

Permalink
Split between test go and test rust
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Oct 4, 2024
1 parent fbb04fd commit 9e85bab
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 24 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tests-go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

name: tests_go
jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Test
run: go test ./...
40 changes: 16 additions & 24 deletions .github/workflows/tests.yml → .github/workflows/tests-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,16 @@ concurrency:

on:
pull_request:
paths:
- 'Cargo.toml'
- 'Cargo.lock'
- 'rust-toolchain.toml'
- '.github/workflows/tests.yml'
- 'txstatus/**'
- 'old-faithful-proto/**'
- 'geyser-plugin-runner/**'
- 'tests/rust/**'
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

name: tests
jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Test
run: go test ./...
test_rust:
paths:
- 'Cargo.toml'
- 'Cargo.lock'
Expand All @@ -38,6 +23,13 @@ jobs:
- 'old-faithful-proto/**'
- 'geyser-plugin-runner/**'
- 'tests/rust/**'

env:
CARGO_TERM_COLOR: always

name: tests_rust
jobs:
test_rust:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
Expand Down

0 comments on commit 9e85bab

Please sign in to comment.