Skip to content

Commit

Permalink
chore: Use contract test service action. (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion authored May 21, 2024
1 parent ee96d29 commit c7c27b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
description: "If true, run unit tests, otherwise skip them."
required: false
default: "true"
github_token:
description: "Github token used to access contract test harness."
required: true

runs:
using: composite
Expand All @@ -24,5 +27,8 @@ runs:
shell: bash
- run: make start-contract-test-service-bg
shell: bash
- run: make run-contract-tests
shell: bash
- uses: launchdarkly/gh-actions/actions/[email protected]
with:
test_service_port: 8000
token: ${{ inputs.github_token }}
extra_params: '--skip-from=./test-service/testharness-suppressions.txt'
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
build-test:
strategy:
matrix:
versions:
versions:
- {os: 'ubuntu-20.04', otp: '21.x', rebar: '3.15.2'}
- {os: 'ubuntu-22.04', otp: '24.x', rebar: '3.18.0'}
- {os: 'ubuntu-22.04', otp: '25.x', rebar: '3.18.0'}
- {os: 'ubuntu-22.04', otp: '26.x', rebar: '3.22.0'}

runs-on: ${{ matrix.versions.os }}
name: Build and Test - ${{ matrix.versions.otp }}

Expand All @@ -34,5 +34,7 @@ jobs:
fetch-depth: 0

- uses: ./.github/actions/ci
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
env:
OTP_VER: ${{ matrix.versions.otp }}

0 comments on commit c7c27b3

Please sign in to comment.