test #2817
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: test | |
| on: | |
| push: | |
| schedule: | |
| - cron: '0 1 */1 * *' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Common Setup | |
| uses: ./.github/actions/setup | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| verify: false | |
| - run: just lint | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Common Setup | |
| uses: ./.github/actions/setup | |
| - run: just test | |
| test-integration: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Common Setup | |
| uses: ./.github/actions/setup | |
| - run: just test-integration | |
| test-cross-platform: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: ['aarch64', 'arm', 'i686', 'loongarch64', 'riscv64', 'x86_64'] | |
| test: ['test', 'build', 'test-cpu-detection', 'test-os-detection'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Run Common Setup | |
| uses: ./.github/actions/setup | |
| - name: Install Qemu | |
| run: sudo apt-get update && sudo apt-get install -y qemu-user | |
| - name: ${{ matrix.test }} on ${{ matrix.arch }} | |
| run: just ${{ matrix.arch }} ${{ matrix.test }} |