fixed sf compute tagging for v0 until tags #59
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: SFCompute Validation Tests | |
| on: | |
| schedule: | |
| # Run daily at 2 AM UTC | |
| - cron: '0 2 * * *' | |
| workflow_dispatch: | |
| # Allow manual triggering | |
| pull_request: | |
| paths: | |
| - 'v1/providers/sfcompute/**' | |
| - 'internal/validation/**' | |
| - 'v1/**' | |
| branches: [ main ] | |
| jobs: | |
| sfcompute-validation: | |
| name: SFCompute Provider Validation | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Cache Go modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Install dependencies | |
| run: make deps | |
| - name: Run SFCompute validation tests | |
| env: | |
| SFCOMPUTE_API_KEY: ${{ secrets.SFCOMPUTE_API_KEY }} | |
| TEST_PRIVATE_KEY_BASE64: ${{ secrets.TEST_PRIVATE_KEY_BASE64 }} | |
| TEST_PUBLIC_KEY_BASE64: ${{ secrets.TEST_PUBLIC_KEY_BASE64 }} | |
| VALIDATION_TEST: true | |
| run: | | |
| cd v1/providers/sfcompute | |
| go test -v -short=false -timeout=30m ./... | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: sfcompute-validation-results | |
| path: | | |
| v1/providers/sfcompute/coverage.out |