Skip to content

Commit

Permalink
Split tests (#139)
Browse files Browse the repository at this point in the history
Split up the test workflows.

Reviewed-on: https://git.vdb.to/cerc-io/laconicd/pulls/139
Co-authored-by: Thomas E Lackey <[email protected]>
Co-committed-by: Thomas E Lackey <[email protected]>
  • Loading branch information
telackey authored and Thomas E Lackey committed Jan 23, 2024
1 parent 348ae68 commit 02991c7
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 41 deletions.
21 changes: 21 additions & 0 deletions .gitea/workflows/test-importer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Tests
on:
pull_request:
push:
branches:
- main
- release/**

jobs:
test-importer:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21
check-latest: true
- uses: actions/checkout@v3
- name: test-importer
run: |
make test-import
21 changes: 21 additions & 0 deletions .gitea/workflows/test-rpc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Tests
on:
pull_request:
push:
branches:
- main
- release/**

jobs:
test-rpc:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21
check-latest: true
- uses: actions/checkout@v3
- name: Test rpc endpoint
run: |
make test-rpc
41 changes: 0 additions & 41 deletions .gitea/workflows/test.yml → .gitea/workflows/test-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,6 @@ on:
- release/**

jobs:
test-unit:
# This test case doesn't work in CI, run as root.
env:
SKIP_UNIT_TESTS: TestInitConfigNonNotExistError
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21
check-latest: true
- uses: actions/checkout@v3
- name: Test
run: |
make test-unit
test-importer:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21
check-latest: true
- uses: actions/checkout@v3
- name: test-importer
run: |
make test-import
test-rpc:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21
check-latest: true
- uses: actions/checkout@v3
- name: Test rpc endpoint
run: |
make test-rpc
sdk_tests:
runs-on: ubuntu-latest
steps:
Expand Down
23 changes: 23 additions & 0 deletions .gitea/workflows/test-unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Tests
on:
pull_request:
push:
branches:
- main
- release/**

jobs:
test-unit:
# This test case doesn't work in CI, run as root.
env:
SKIP_UNIT_TESTS: TestInitConfigNonNotExistError
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21
check-latest: true
- uses: actions/checkout@v3
- name: Test
run: |
make test-unit

0 comments on commit 02991c7

Please sign in to comment.