Add example for accessing S3 resources across different AWS accounts … #1414
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: Makefile CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
schedule: | |
- cron: '0 13 * * 1' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Nodejs | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
# see https://github.com/localstack/localstack/pull/6831 | |
# remove once no longer needed | |
- name: Fix pyOpenSSL version | |
run: pip install --upgrade pyOpenSSL | |
- name: Install LocalStack | |
run: pip install localstack awscli-local[ver1] | |
- name: Install Dependencies | |
run: | | |
pip install virtualenv | |
pip install --upgrade pyopenssl | |
npm install -g serverless | |
- name: Setup config | |
run: | | |
echo "Configuring git for codecommit sample" | |
git config --global user.email "[email protected]" | |
git config --global user.name "Localstack Pro-Samples" | |
- name: Pull the latest docker image | |
run: docker pull localstack/localstack-pro | |
- name: Execute tests | |
env: | |
LOCALSTACK_API_KEY: ${{ secrets.TEST_LOCALSTACK_API_KEY }} | |
DNS_ADDRESS: 127.0.0.1 | |
DEBUG: 1 | |
timeout-minutes: 200 | |
run: make test-ci-all | |
- name: Send a Slack notification | |
if: failure() || github.event_name != 'pull_request' | |
uses: ravsamhq/notify-slack-action@v2 | |
with: | |
status: ${{ job.status }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
notification_title: "{workflow} has {status_message}" | |
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" | |
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Workflow run>" | |
notify_when: "failure" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |