-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Fix rate limiting error when downloading contract tests (#85)
- Loading branch information
Showing
5 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ inputs: | |
description: 'Which ghc version to use when building the package' | ||
required: false | ||
default: 8.10.7 | ||
token: | ||
description: 'GH token used to download SDK test harness.' | ||
required: true | ||
outputs: | ||
package-hashes: | ||
description: "base64-encoded sha256 hashes of distribution files" | ||
|
@@ -45,6 +48,16 @@ runs: | |
shell: bash | ||
run: stack --no-terminal --resolver=${{ inputs.resolver }} test | ||
|
||
- name: Run contract tests | ||
- name: Build contract tests | ||
shell: bash | ||
run: STACKOPTS='--no-terminal --resolver=${{ inputs.resolver }}' make contract-tests | ||
run: STACKOPTS='--no-terminal --resolver=${{ inputs.resolver }}' make build-contract-tests | ||
|
||
- name: Start contract test service | ||
shell: bash | ||
run: STACKOPTS='--no-terminal --resolver=${{ inputs.resolver }}' make start-contract-test-service-bg | ||
|
||
- uses: launchdarkly/gh-actions/actions/[email protected] | ||
with: | ||
test_service_port: 8000 | ||
token: ${{ inputs.token }} | ||
extra_params: "-skip-from contract-tests/testharness-suppressions.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,8 @@ jobs: | |
- name: Build and Test | ||
id: ci | ||
uses: ./.github/actions/ci | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- uses: launchdarkly/gh-actions/actions/[email protected] | ||
name: 'Get Hackage token' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters