Skip to content

Commit a6585d8

Browse files
faster integration testing
1 parent 1bcdb00 commit a6585d8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,9 @@ jobs:
679679
sudo apt-get install nginx
680680
sudo nginx -c "$(pwd)/test/tcp/reverse-proxy/nginx/dynamic-sni-proxy.conf"
681681
fi
682+
683+
- name: Install AWS CLI
684+
uses: unconventionaldotdev/setup-awscli@main
682685

683686
- name: Run traffic light robot integration tests
684687
if: ((startsWith(github.ref_name, 'build-traffic-lights') && github.ref_type == 'tag') || (github.repository == 'stackql/stackql' && github.event_name == 'push' && github.ref == 'refs/heads/main')) && matrix.registry == 'test/registry'
@@ -691,6 +694,13 @@ jobs:
691694
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
692695
GODEBUG: netdns=go
693696
run: |
697+
cliResult="$(aws s3 ls s3://stackql-trial-bucket-02 --region ap-southeast-2)" # 'stackql-trial-bucket-02' and region = 'ap-southeast-2'
698+
echo "AWS CLI S3 List Result: $cliResult"
699+
if [[ "$cliResult" == *"stackql-trial-bucket-02"* ]]; then
700+
echo "AWS CLI is working correctly."
701+
else
702+
echo "AWS CLI is not working correctly."
703+
fi
694704
echo "## Stray flask apps to be killed before robot tests ##"
695705
pgrep -f flask | xargs kill -9 || true
696706
echo "## End ##"

0 commit comments

Comments
 (0)