Skip to content

Release/v2.3.0

Release/v2.3.0 #174

Workflow file for this run

---
name: Tests - Docker Compose
on:
pull_request:
types:
- opened
- synchronize
paths:
- .github/workflows/test-docker.yml
- docker/common-services.yaml
- docker/internal-auth/**
- docker/legacy-auth/**
- tests/fixtures/docker/**
- tests/integration/compose/**
- tests/unit/compose/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-compose:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- name: install asdf & tools
uses: asdf-vm/actions/[email protected]
- name: Run unit tests
shell: bash
run: |
make test-unit-compose
integration-compose-internal:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- name: Temporary SQLite/LZMA - Install missing libraries
run: sudo apt install -y libsqlite3-dev libbz2-dev
- name: install asdf & tools
uses: asdf-vm/actions/[email protected]
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected]
with:
project_id: 'computer-vision-team'
service_account: '[email protected]'
token_format: access_token
workload_identity_provider: ${{ secrets.REPO_GOOGLE_WORKLOAD_IDP }}
- name: Set Up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Login to GAR
uses: docker/[email protected]
with:
registry: us-central1-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}
- name: Create Local License From Secret
uses: mobiledevops/secret-to-file-action@v1
with:
base64-encoded-secret: ${{ secrets.FO_INTERNAL_LICENSE }}
filename: 'internal-license.key'
is-executable: false
working-directory: './docker'
- name: Run compose integration tests for internal
shell: bash
run: |
make test-integration-compose-internal
integration-compose-legacy:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- name: install asdf & tools
uses: asdf-vm/actions/[email protected]
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/[email protected]
with:
project_id: 'computer-vision-team'
service_account: '[email protected]'
token_format: access_token
workload_identity_provider: ${{ secrets.REPO_GOOGLE_WORKLOAD_IDP }}
- name: Set Up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Login to GAR
uses: docker/[email protected]
with:
registry: us-central1-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}
- name: Create Local License From Secret
uses: mobiledevops/secret-to-file-action@v1
with:
base64-encoded-secret: ${{ secrets.FO_LEGACY_LICENSE }}
filename: 'legacy-license.key'
is-executable: false
working-directory: './docker'
- name: Run compose integration tests for legacy
shell: bash
run: |
make test-integration-compose-legacy