feat: add dashboard nav rail(29) (#39) #83
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: 'Tests (Golang)' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'go-services/**' | |
- 'go-shared/**' | |
- 'go.*' | |
env: | |
GCP_OIDC_PROVIDER_NAME: github-provider | |
GCP_PROJECT_ID: basemind-ai-development | |
GCP_PROJECT_NUMBER: 78794879644 | |
GCP_SERVICE_ACCOUNT_NAME: firebase-adminsdk-frgvx | |
GCP_WORKLOAD_IDENTITY_POOL: dev-pool | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- name: Load cached Golang dependencies | |
id: cached-go-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: go-${{ inputs.go_version }}-v1.0-${{ hashFiles('**/go.sum') }} | |
- name: Install Golang dependencies | |
if: steps.cached-go-dependencies.outputs.cache-hit != 'true' | |
shell: bash | |
run: go get -v -t ./... | |
- name: Install Atlas | |
shell: bash | |
run: curl -sSf https://atlasgo.sh | sh | |
- name: Authenticate with GCP | |
id: auth | |
uses: google-github-actions/[email protected] | |
with: | |
workload_identity_provider: 'projects/${GCP_PROJECT_NUMBER}/locations/global/workloadIdentityPools/${GCP_WORKLOAD_IDENTITY_POOL}/providers/${GCP_OIDC_PROVIDER_NAME}' | |
service_account: '${GCP_SERVICE_ACCOUNT_NAME}@${GCP_PROJECT_ID}.iam.gserviceaccount.com' | |
- name: Test | |
run: go test ./... |