Skip to content

Commit

Permalink
Split testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Apr 3, 2024
1 parent 57056a9 commit cad7c92
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
test-target: sdk-test
contract-tests: true

test-windows:
name: ${{ format('Windows, Go {0}', matrix.go-version) }}
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/common_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ on:
description: "Go version to use for the jobs."
required: true
type: string
test-target:
type: string
description: 'The test target to run.'
required: true
contract-tests:
type: boolean
description: 'True to run the contract tests'
required: true

jobs:
unit-test-and-coverage:
Expand All @@ -28,15 +20,14 @@ jobs:
- uses: ./.github/actions/unit-tests
with:
lint: 'true'
test-target: ${{ inputs.test-target }}
test-target: sdk-test
- uses: ./.github/actions/coverage
with:
enforce: 'false'

contract-tests:
runs-on: ubuntu-latest
name: 'Contract Tests'
if: inputs.contract-tests
env:
TEST_SERVICE_PORT: 8000
steps:
Expand All @@ -60,8 +51,6 @@ jobs:
name: Contract-test-service-logs-${{ steps.go-version.outputs.version }}
path: /tmp/sdk-contract-test-service.log



benchmarks:
name: 'Benchmarks'
runs-on: ubuntu-latest
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/ldotel-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test ldotel
name: Build and Test SDK
on:
push:
branches: [ 'v7', 'feat/**' ]
Expand All @@ -22,8 +22,17 @@ jobs:
fail-fast: false
matrix:
go-version: ${{ fromJSON(needs.go-versions.outputs.matrix) }}
uses: ./.github/workflows/common_ci.yml
with:
go-version: ${{ matrix.go-version }}
test-target: ldotel-test
contract-tests: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ inputs.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version }}
- uses: ./.github/actions/unit-tests
with:
lint: 'true'
test-target: ldotel-test
- uses: ./.github/actions/coverage
with:
enforce: 'false'

0 comments on commit cad7c92

Please sign in to comment.