Skip to content

Commit c9da7a1

Browse files
authored
ci: use shared github action for contract tests (#366)
Removes the locally defined contract-test action, and uses a shared one instead.
1 parent a733fbf commit c9da7a1

File tree

4 files changed

+7
-39
lines changed

4 files changed

+7
-39
lines changed

.github/actions/contract-tests/action.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/client.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515

1616
jobs:
1717
contract-tests:
18+
1819
runs-on: ubuntu-22.04
1920
env:
2021
# Port the test service (implemented in this repo) should bind to.
@@ -28,10 +29,11 @@ jobs:
2829
run_tests: false
2930
- name: 'Launch test service as background task'
3031
run: $TEST_SERVICE_BINARY $TEST_SERVICE_PORT 2>&1 &
31-
- uses: ./.github/actions/contract-tests
32+
- uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.0.0
3233
with:
3334
# Inform the test harness of test service's port.
3435
test_service_port: ${{ env.TEST_SERVICE_PORT }}
36+
token: ${{ secrets.GITHUB_TOKEN }}
3537
build-test:
3638
runs-on: ubuntu-22.04
3739
steps:

.github/workflows/server.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ jobs:
2828
run_tests: false
2929
- name: 'Launch test service as background task'
3030
run: $TEST_SERVICE_BINARY $TEST_SERVICE_PORT 2>&1 &
31-
- uses: ./.github/actions/contract-tests
31+
- uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.0.0
3232
with:
3333
# Inform the test harness of test service's port.
3434
test_service_port: ${{ env.TEST_SERVICE_PORT }}
3535
extra_params: '-skip-from ./contract-tests/server-contract-tests/test-suppressions.txt'
36+
token: ${{ secrets.GITHUB_TOKEN }}
3637
build-test-server:
3738
runs-on: ubuntu-22.04
3839
steps:

.github/workflows/sse.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
run_tests: false
3333
- name: 'Launch test service as background task'
3434
run: $TEST_SERVICE_BINARY $TEST_SERVICE_PORT 2>&1 &
35-
- uses: ./.github/actions/contract-tests
35+
- uses: launchdarkly/gh-actions/actions/contract-tests@contract-tests-v1.0.0
3636
with:
3737
repo: 'sse-contract-tests'
3838
test_service_port: ${{ env.TEST_SERVICE_PORT }}
39+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)