add primary site tests #268
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: CI | ||
| on: pull_request | ||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: lint | ||
| run: helm lint charts/* | ||
| test_primary_site: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: medyagh/setup-minikube@v0.0.20 | ||
| - name: Install primary site chart | ||
| env: | ||
| FOXGLOVE_API_URL: ${{ }} | ||
| FOXGLOVE_SITE_TOKEN: ${{ }} | ||
| run: | | ||
| set -e | ||
| kubectl create namespace foxglove | ||
| kubectl create secret generic foxglove-site-token --from-literal="FOXGLOVE_SITE_TOKEN=\"$FOXGLOVE_SITE_TOKEN\"" --namespace foxglove | ||
| cat >> ./cloud-credentials-secret.yaml << EOF | ||
| apiVersion: v1 | ||
| kind: Secret | ||
| metadata: | ||
| name: cloud-credentials | ||
| type: Opaque | ||
| stringData: | ||
| S3_COMPATIBLE_ACCESS_KEY_ID: root | ||
| S3_COMPATIBLE_SECRET_ACCESS_KEY: password | ||
| S3_COMPATIBLE_SERVICE_REGION: default | ||
| S3_COMPATIBLE_SERVICE_URL: http://localhost:9000 | ||
| EOF | ||
| kubectl apply -f ./cloud-credentials-secret.yaml -n foxglove | ||
| cat >> ./values.yaml << EOF | ||
| globals: | ||
| foxgloveApiUrl: "$FOXGLOVE_API_URL" | ||
| inbox: | ||
| storageProvider: "s3_compatible" | ||
| lake: | ||
| storageProvider: "s3_compatible" | ||
| EOF | ||
| helm upgrade --install foxglove-primary-site ./charts/primary-site \ | ||
| --namespace foxglove \ | ||
| --values ./values.yaml | ||