vendor: update github.com/VictoriaMetrics/VictoriaMetrics from v0.0.0… #626
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: main | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - '**.go' | |
| - 'go.*' | |
| - '.github/workflows/main.yml' | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - '**.go' | |
| - 'go.*' | |
| - '.github/workflows/main.yml' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| cancel-in-progress: true | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Code checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| id: go | |
| uses: actions/setup-go@v6 | |
| with: | |
| cache: false | |
| go-version: stable | |
| - name: Cache Go artifacts | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/bin | |
| ~/go/pkg/mod | |
| key: go-artifacts-${{ runner.os }}-check-all-${{ steps.go.outputs.go-version }}-${{ hashFiles('go.sum', 'Makefile', 'app/**/Makefile') }} | |
| restore-keys: go-artifacts-${{ runner.os }}-check-all- | |
| - name: Run check-all | |
| run: | | |
| make check-all | |
| git diff --exit-code | |
| test: | |
| name: test | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| scenario: | |
| - 'test-full' | |
| - 'test-full-386' | |
| - 'test-pure' | |
| steps: | |
| - name: Code checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| id: go | |
| uses: actions/setup-go@v6 | |
| with: | |
| cache: false | |
| go-version: stable | |
| - name: Cache Go artifacts | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/bin | |
| ~/go/pkg/mod | |
| key: go-artifacts-${{ runner.os }}-${{ matrix.scenario }}-${{ steps.go.outputs.go-version }}-${{ hashFiles('go.sum', 'Makefile', 'app/**/Makefile') }} | |
| restore-keys: go-artifacts-${{ runner.os }}-${{ matrix.scenario }}- | |
| - name: Run tests | |
| run: GOGC=10 make ${{ matrix.scenario}} | |
| - name: Publish coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage.txt | |
| integration-test: | |
| name: integration-test | |
| needs: [lint, test] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Code checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| id: go | |
| uses: actions/setup-go@v6 | |
| with: | |
| cache: false | |
| go-version: stable | |
| - name: Cache Go artifacts | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/bin | |
| ~/go/pkg/mod | |
| key: go-artifacts-${{ runner.os }}-${{ matrix.scenario }}-${{ steps.go.outputs.go-version }}-${{ hashFiles('go.sum', 'Makefile', 'app/**/Makefile') }} | |
| restore-keys: go-artifacts-${{ runner.os }}-${{ matrix.scenario }}- | |
| - name: Run integration tests | |
| run: make integration-test |