chore(deps): update everything #1311
This file contains 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: Build and test | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
concurrency: | |
group: pr-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
INDYKITE_APPLICATION_CREDENTIALS: ${{ secrets.APP_AGENT_CREDENTIALS }} | |
INDYKITE_SERVICE_ACCOUNT_CREDENTIALS: ${{ secrets.SERVICE_ACCOUNT_CREDENTIALS }} | |
TENANT_ID: ${{ secrets.TENANT_ID }} | |
PROJECT_ID: jarvis-dev-268314 | |
PROJ_NUMBER: 699926043561 | |
RUN_ENV: staging | |
jobs: | |
test: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Run Unit tests | |
run: | | |
make test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.out | |
# Notify us when failed, so devs are not waiting for Codecov report when it will never come. | |
# Because Codecov report is required to be able to merge, we have to run again the whole test anyway. | |
fail_ci_if_error: true | |
integration-test: | |
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request && github.event.pull_request.draft == false) | |
name: Integration Test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Authenticate to Google Cloud | |
uses: google-github-actions/auth@v2.1.5 | |
with: | |
workload_identity_provider: projects/699926043561/locations/global/workloadIdentityPools/github-dev/providers/github-dev-provider | |
service_account: tester@jarvis-dev-268314.iam.gserviceaccount.com | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Run Integration tests | |
run: | | |
make integration |