.github: Iterate some more.

This commit is contained in:
Aaron Son
2023-12-06 14:54:56 -08:00
parent 69a428032b
commit a20fde7422
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
echo "DOLT_BATS_AWS_EXISTING_REPO=aws_remote_bats_tests__dolt__" >> $GITHUB_ENV
fi
- name: Configure filter tags for lambda bats
if: ${{ matrix.os == 'ubuntu-22.04' && use_credentials == 'true'}}
if: ${{ matrix.os == 'ubuntu-22.04' && env.use_credentials == 'true' }}
run: |
echo "BATS_FILTER=--filter-tags no_lambda" >> $GITHUB_ENV
- name: Configure AWS Credentials
+6 -2
View File
@@ -8,7 +8,7 @@ on:
- 'integration-tests/**'
concurrency:
group: ci-bats-unix-${{ github.event.pull_request.number || github.ref }}
group: ci-lambdabats-unix-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
@@ -22,7 +22,6 @@ jobs:
fail-fast: true
env:
use_credentials: ${{ secrets.AWS_SECRET_ACCESS_KEY != '' && secrets.AWS_ACCESS_KEY_ID != '' }}
if: ${{ env.use_credentials == 'true' }}
steps:
- name: Conditionally Set ENV VARS for AWS tests
if: ${{ env.use_credentials == 'true' }}
@@ -42,18 +41,23 @@ jobs:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-duration-seconds: 10800 # 3 hours D:
- uses: actions/checkout@v3
if: ${{ env.use_credentials == 'true' }}
- name: Setup Go 1.x
uses: actions/setup-go@v3
if: ${{ env.use_credentials == 'true' }}
with:
go-version: ^1.21
id: go
- name: install lambdabats
if: ${{ env.use_credentials == 'true' }}
run: go install github.com/dolthub/lambdabats/lambdabats@latest
- name: Test all Unix
if: ${{ env.use_credentials == 'true' }}
run: |
lambdabats -use-aws-environment-credentials -s lambda_skip -F tap .
working-directory: ./integration-tests/bats
- name: Test all Unix, SQL_ENGINE=remote-engine
if: ${{ env.use_credentials == 'true' }}
run: |
lambdabats -env SQL_ENGINE=remote-engine -s lambda_skip -use-aws-environment-credentials -F tap .
working-directory: ./integration-tests/bats