back to bool #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Test Devbox Cache' | |
| on: | |
| push: | |
| branches: | |
| - '227-cicd-cache-devbox-install-to-speed-up-deployment' | |
| env: | |
| PROJECT_ID: 'benefit-decision-toolkit-play' | |
| REGION: 'us-central1' | |
| SERVICE: 'benefit-decision-toolkit-play' | |
| API_NAME: 'library-api' | |
| WORKLOAD_IDENTITY_PROVIDER: 'projects/1034049717668/locations/global/workloadIdentityPools/github-actions-google-cloud/providers/github' | |
| jobs: | |
| test-devbox-cache: | |
| runs-on: 'ubuntu-latest' | |
| permissions: | |
| contents: 'read' | |
| id-token: 'write' | |
| steps: | |
| - name: 'Checkout' | |
| uses: 'actions/checkout@v4' | |
| # Devbox needs a .env file to exist, even if it's empty | |
| - name: 'Create .env file' | |
| run: touch .env | |
| # Setup devbox which includes all our dependencies: Maven, JDK 21, Quarkus, etc. | |
| - name: 'Install devbox' | |
| uses: 'jetify-com/[email protected]' | |
| # test with boolean instead of string... expect no cache hit | |
| with: | |
| enable-cache: true |