Skip to content

Commit

Permalink
chore(ci): add license for integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Jul 8, 2024
1 parent 5e3937e commit b47be7a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,27 @@ jobs:

integration:
needs: check
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
cache-key: integration
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-duration-seconds: 600
role-to-assume: arn:aws:iam::034080348588:role/databend-ci
aws-region: us-east-2
- name: Get License from S3
run: |
aws s3 cp s3://databend-ci/misc/license.key license.key
aws s3 cp s3://databend-ci/misc/license.json license.json
cat license.json
echo "QUERY_DATABEND_ENTERPRISE_LICENSE=$(cat license.key)" >> $GITHUB_ENV
- run: make -C tests test-core
- run: make -C tests test-driver
- run: make -C tests test-bendsql
9 changes: 3 additions & 6 deletions tests/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3'
version: "3"
services:
minio:
image: docker.io/minio/minio
Expand All @@ -7,13 +7,10 @@ services:
volumes:
- ./data:/data
databend:
# Use nightly image for testing
#
# Please remove the nightly tag once https://github.com/datafuselabs/databend/pull/15559 included
# in stable.
image: docker.io/datafuselabs/databend:nightly
image: docker.io/datafuselabs/databend
environment:
- QUERY_STORAGE_TYPE=s3
- QUERY_DATABEND_ENTERPRISE_LICENSE
- AWS_S3_ENDPOINT=http://localhost:9000
- AWS_ACCESS_KEY_ID=minioadmin
- AWS_SECRET_ACCESS_KEY=minioadmin
Expand Down

0 comments on commit b47be7a

Please sign in to comment.