Capitalize secrets references (#4018) #3
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: Tests | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| branches: | |
| - master | |
| - dev | |
| pull_request: | |
| merge_group: | |
| types: [checks_requested] | |
| permissions: | |
| contents: read | |
| # Cancel ongoing workflow runs if a new one is started | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| Unit: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-14, ubuntu-22.04, ubuntu-24.04, windows-2022, custom-arm64-jammy, custom-arm64-noble] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - name: Set timeout on Windows # Windows UT run slower and need a longer timeout | |
| shell: bash | |
| if: matrix.os == 'windows-2022' | |
| run: echo "TIMEOUT=240s" >> "$GITHUB_ENV" | |
| - name: test-unit | |
| shell: bash | |
| run: ./scripts/run_task.sh test-unit | |
| env: | |
| TIMEOUT: ${{ env.TIMEOUT }} | |
| Fuzz: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - name: test-fuzz | |
| shell: bash | |
| run: ./scripts/run_task.sh test-fuzz | |
| e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - name: Run e2e tests | |
| uses: ./.github/actions/run-monitored-tmpnet-cmd | |
| with: | |
| run: ./scripts/run_task.sh test-e2e-ci | |
| artifact_prefix: e2e | |
| filter_by_owner: avalanchego-e2e | |
| prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }} | |
| prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }} | |
| loki_username: ${{ secrets.LOKI_ID || '' }} | |
| loki_password: ${{ secrets.LOKI_PASSWORD || '' }} | |
| e2e_post_granite: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - name: Run e2e tests | |
| uses: ./.github/actions/run-monitored-tmpnet-cmd | |
| with: | |
| run: ./scripts/run_task.sh test-e2e-ci -- --activate-granite | |
| artifact_prefix: e2e-post-granite | |
| filter_by_owner: avalanchego-e2e | |
| prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }} | |
| prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }} | |
| loki_username: ${{ secrets.LOKI_ID || '' }} | |
| loki_password: ${{ secrets.LOKI_PASSWORD || '' }} | |
| e2e_kube: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - uses: ./.github/actions/run-monitored-tmpnet-cmd | |
| with: | |
| run: ./scripts/run_task.sh test-e2e-kube-ci | |
| runtime: kube | |
| artifact_prefix: e2e-kube | |
| filter_by_owner: avalanchego-e2e | |
| prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }} | |
| prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }} | |
| loki_username: ${{ secrets.LOKI_ID || '' }} | |
| loki_password: ${{ secrets.LOKI_PASSWORD || '' }} | |
| e2e_existing_network: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - name: Run e2e tests with existing network | |
| uses: ./.github/actions/run-monitored-tmpnet-cmd | |
| with: | |
| run: ./scripts/run_task.sh test-e2e-existing-ci | |
| artifact_prefix: e2e-existing-network | |
| prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }} | |
| prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }} | |
| loki_username: ${{ secrets.LOKI_ID || '' }} | |
| loki_password: ${{ secrets.LOKI_PASSWORD || '' }} | |
| Upgrade: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - name: Run e2e tests | |
| uses: ./.github/actions/run-monitored-tmpnet-cmd | |
| with: | |
| run: ./scripts/run_task.sh test-upgrade | |
| artifact_prefix: upgrade | |
| prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }} | |
| prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }} | |
| loki_username: ${{ secrets.LOKI_ID || '' }} | |
| loki_password: ${{ secrets.LOKI_PASSWORD || '' }} | |
| Lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - uses: ./.github/actions/install-nix | |
| - name: Runs all lint checks | |
| shell: nix develop --command bash -x {0} | |
| run: ./scripts/run_task.sh lint-all-ci | |
| buf-lint: | |
| name: Protobuf Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: bufbuild/buf-action@dfda68eacb65895184c76b9ae522b977636a2c47 #v1.1.4 | |
| with: | |
| input: "proto" | |
| pr_comment: false | |
| # Breaking changes are managed by the rpcchainvm protocol version. | |
| breaking: false | |
| # buf-action defaults to pushing on non-fork branch pushes | |
| # which is never desirable for this job. The buf-push job is | |
| # responsible for pushes. | |
| push: false | |
| # This version should match the version installed in the nix dev shell | |
| version: 1.47.2 | |
| links-lint: | |
| name: Markdown Links Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: umbrelladocs/action-linkspector@a0567ce1c7c13de4a2358587492ed43cab5d0102 #v1.3.4 | |
| with: | |
| fail_level: any | |
| check_generated_protobuf: | |
| name: Up-to-date protobuf | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| # Use the dev shell instead of bufbuild/buf-action to ensure the dev shell provides the expected versions | |
| - uses: ./.github/actions/install-nix | |
| - shell: nix develop --command bash -x {0} | |
| run: ./scripts/run_task.sh check-generate-protobuf | |
| check_mockgen: | |
| name: Up-to-date mocks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - shell: bash | |
| run: ./scripts/run_task.sh check-generate-mocks | |
| check_canotogen: | |
| name: Up-to-date canoto | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - shell: bash | |
| run: ./scripts/run_task.sh check-generate-canoto | |
| check_contract_bindings: | |
| name: Up-to-date contract bindings | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - uses: ./.github/actions/install-nix | |
| - shell: nix develop --command bash -x {0} | |
| run: task check-generate-load-contract-bindings | |
| go_mod_tidy: | |
| name: Up-to-date go.mod and go.sum | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - shell: bash | |
| run: ./scripts/run_task.sh check-go-mod-tidy | |
| test_build_image: | |
| name: Image build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install qemu (required for cross-platform builds) | |
| run: | | |
| sudo apt update | |
| sudo apt -y install qemu-system qemu-user-static | |
| - name: Check image build | |
| shell: bash | |
| run: ./scripts/run_task.sh test-build-image | |
| test_build_antithesis_avalanchego_images: | |
| name: Build Antithesis avalanchego images | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - name: Check image build for avalanchego test setup | |
| shell: bash | |
| run: ./scripts/run_task.sh test-build-antithesis-images-avalanchego | |
| test_build_antithesis_xsvm_images: | |
| name: Build Antithesis xsvm images | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - name: Check image build for xsvm test setup | |
| shell: bash | |
| run: ./scripts/run_task.sh test-build-antithesis-images-xsvm | |
| e2e_bootstrap_monitor: | |
| name: Run bootstrap monitor e2e tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - uses: ./.github/actions/install-nix | |
| - name: Run e2e tests | |
| shell: bash | |
| run: nix develop --command ./scripts/run_task.sh test-bootstrap-monitor-e2e | |
| load_tests: | |
| name: load tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup-go-for-project | |
| - uses: ./.github/actions/install-nix | |
| - uses: ./.github/actions/run-monitored-tmpnet-cmd | |
| with: | |
| run: ./scripts/run_task.sh test-load | |
| artifact_prefix: load | |
| prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }} | |
| prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }} | |
| loki_username: ${{ secrets.LOKI_ID || '' }} | |
| loki_password: ${{ secrets.LOKI_PASSWORD || '' }} |