Nightly Test #720
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
| # This workflow will build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: Nightly Test | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Run nightly at 00:00 UTC | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Test API V2 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Go | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 | |
| with: | |
| version: v2.1 | |
| - name: Build | |
| run: make build | |
| - name: Test | |
| run: make test | |
| env: | |
| CHROMA_VERSION: "latest" | |
| - name: Race Test (concurrency state) | |
| run: make test-race-v2 | |
| - name: Test Cloud | |
| run: make test-cloud | |
| env: | |
| CHROMA_API_KEY: ${{ secrets.CHROMA_API_KEY }} | |
| CHROMA_TENANT: ${{ secrets.CHROMA_TENANT }} | |
| CHROMA_DATABASE: ${{ secrets.CHROMA_DATABASE }} |