Refactor: select task versions based on the cached package data from … #6325
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: Token test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| PUB_ENVIRONMENT: bot.github | |
| jobs: | |
| token-test: | |
| # This test creates a id-token, not for talking to an external service, but | |
| # for testing that we are able to verify and validate the token. | |
| permissions: | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| # Set health checks to wait until postgres has started | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c | |
| - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c | |
| - name: Install dependencies | |
| run: dart pub get | |
| working-directory: app | |
| - name: env | |
| run: env | |
| - name: Run test | |
| run: dart test -P presubmit test/service/openid/github_actions_id_token_test.dart | |
| working-directory: app | |
| env: | |
| PUB_POSTGRES_URL: postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable |