Skip to content

AWS SDK Smoke Tests #23

AWS SDK Smoke Tests

AWS SDK Smoke Tests #23

Workflow file for this run

name: AWS SDK Smoke Tests
on:
push:
branches:
- main
- stable
- next
paths:
- 'packages/aws_sdk/**/*.dart'
- 'packages/smithy/**/*.dart'
pull_request:
paths:
- 'packages/aws_sdk/**/*.dart'
- 'packages/smithy/**/*.dart'
schedule:
- cron: "0 0 * * 0" # Every Sunday at 00:00
defaults:
run:
shell: bash
permissions: read-all
jobs:
smoke_test:
name: Smoke Test
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # 3.1.0
- name: Git Submodules
run: git submodule update --init
- name: Setup Dart
uses: dart-lang/setup-dart@196f54580e9eee2797c57e85e289339f85e6779d # main
with:
sdk: stable
- name: Link Packages
run: |
# Patch libgit2dart (see https://github.com/dart-lang/pub/issues/3563)
( cd packages/aft/external/libgit2dart; git apply ../libgit2dart.patch )
dart pub global activate -spath packages/aft
aft link
- name: Get Packages
run: dart pub upgrade
working-directory: packages/aws_sdk/smoke_test
- name: Install Localstack
run: |
# Workaround for dependency issue:
# https://github.com/localstack/localstack/pull/6831
pip install pyOpenSSL --upgrade
pip install cryptography --upgrade
# Pin to <2.0.0 until bucket creation is fixed:
# https://github.com/localstack/localstack/issues/8018
pip install "localstack<2.0.0"
docker pull localstack/localstack
localstack start --detached
echo "Waiting for localstack startup..."
localstack wait -t 30
echo "Startup complete"
- name: Run Tests
run: dart test
working-directory: packages/aws_sdk/smoke_test