Skip to content

chore(workflows/pre-commit): try sparse checkout and include step to … #230

chore(workflows/pre-commit): try sparse checkout and include step to …

chore(workflows/pre-commit): try sparse checkout and include step to … #230

Workflow file for this run

---
name: Tests - Docker Compose
on:
workflow_call:
secrets:
REPO_GOOGLE_WORKLOAD_IDP:
required: true
FO_INTERNAL_LICENSE:
required: true
FO_LEGACY_LICENSE:
required: true
jobs:
unit-compose:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
<<<<<<< HEAD

Check failure on line 19 in .github/workflows/test-docker.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-docker.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
- uses: actions/setup-python@v6.2.0
- name: install asdf & tools
uses: asdf-vm/actions/install@v4.0.1
||||||| parent of 029f0e1 (feat(workflows): add new workflows for asdf and pre-commit to create cache on merge to main (to speed up installs).)
- uses: actions/setup-python@v6.1.0
- name: install asdf & tools
uses: asdf-vm/actions/install@v4.0.1
=======
- uses: actions/setup-python@v6.1.0
- name: Install asdf & tools
uses: "voxel51/aloha-github-workflows/.github/actions/asdf-install-and-cache@main"
>>>>>>> 029f0e1 (feat(workflows): add new workflows for asdf and pre-commit to create cache on merge to main (to speed up installs).)
- 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/checkout@v6
- uses: actions/setup-python@v6.2.0
- name: Temporary SQLite/LZMA - Install missing libraries
run: sudo apt install -y libsqlite3-dev libbz2-dev
- name: Install asdf & tools
uses: "voxel51/aloha-github-workflows/.github/actions/asdf-install-and-cache@main"
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v3
with:
project_id: 'computer-vision-team'
service_account: 'github@computer-vision-team.iam.gserviceaccount.com'
token_format: access_token
workload_identity_provider: ${{ secrets.REPO_GOOGLE_WORKLOAD_IDP }}
- name: Set Up Cloud SDK
uses: google-github-actions/setup-gcloud@v3
- name: Login to GAR
uses: docker/login-action@v3.4.0
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/checkout@v6
- uses: actions/setup-python@v6.2.0
- name: Install asdf & tools
uses: "voxel51/aloha-github-workflows/.github/actions/asdf-install-and-cache@main"
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v3
with:
project_id: 'computer-vision-team'
service_account: 'github@computer-vision-team.iam.gserviceaccount.com'
token_format: access_token
workload_identity_provider: ${{ secrets.REPO_GOOGLE_WORKLOAD_IDP }}
- name: Set Up Cloud SDK
uses: google-github-actions/setup-gcloud@v3
- name: Login to GAR
uses: docker/login-action@v3.4.0
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