Skip to content

Cleanup multipart download and allow for concurrent downloads #1767

Cleanup multipart download and allow for concurrent downloads

Cleanup multipart download and allow for concurrent downloads #1767

Workflow file for this run

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
- swift:5.9
- swiftlang/swift:nightly-5.10-jammy
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