Skip to content

Commit c629f8f

Browse files
committed
refactor(ci): extract common test steps into run-tests composite action
1 parent f614fef commit c629f8f

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Run Tests
2+
description: Setup and run the test suite (requires checkout first)
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: ./.github/actions/setup-test
8+
- run: mise run postgres:up --extra-args "--detach --wait"
9+
shell: bash
10+
- run: mise run --output prefix test
11+
shell: bash

.github/workflows/test.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ jobs:
3737
PG_VERSION: 17
3838
steps:
3939
- uses: actions/checkout@v4
40-
- uses: ./.github/actions/setup-test
41-
- run: mise run postgres:up --extra-args "--detach --wait"
42-
- run: mise run --output prefix test
40+
- uses: ./.github/actions/run-tests
4341
- uses: ./.github/actions/send-slack-notification
4442
with:
4543
channel: engineering
@@ -59,9 +57,7 @@ jobs:
5957
PG_VERSION: ${{ matrix.pg_version }}
6058
steps:
6159
- uses: actions/checkout@v4
62-
- uses: ./.github/actions/setup-test
63-
- run: mise run postgres:up --extra-args "--detach --wait"
64-
- run: mise run --output prefix test
60+
- uses: ./.github/actions/run-tests
6561
- uses: ./.github/actions/send-slack-notification
6662
with:
6763
channel: engineering

0 commit comments

Comments
 (0)