Replace runThrowingTask with syncAwait #1754
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- 7.x.x | |
paths: | |
- '**.swift' | |
pull_request: | |
branches: | |
- main | |
- 7.x.x | |
paths: | |
- '**.swift' | |
workflow_dispatch: | |
env: | |
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DISABLE_LOCALSTACK : "false" | |
AWS_ENABLE_LOGGING : "true" | |
AWS_LOG_LEVEL: "trace" | |
STRICT_CONCURRENCY: "true" | |
jobs: | |
macos: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: SPM build | |
run: swift build | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image: | |
- swift:5.7 | |
- swift:5.8 | |
services: | |
localstack: | |
image: localstack/localstack | |
container: | |
image: ${{ matrix.image }} | |
env: | |
LOCALSTACK_ENDPOINT : "http://localstack:4566" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Test Resource Prefix | |
# set AWS_TEST_RESOURCE_PREFIX environment variable to a random series of 8 letters | |
run: | | |
echo AWS_TEST_RESOURCE_PREFIX=$(cat /dev/urandom | tr -dc 'a-z' | head -c 8) >> $GITHUB_ENV | |
- name: Test | |
# Cannot run in parallel as APIGateway tests fail occasionally | |
run: | | |
swift test --enable-test-discovery |