Solana ChainWriter #3428
This file contains 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: golangci_lint | |
on: | |
pull_request: | |
jobs: | |
golang_lint_integration_tests: | |
name: Golang Lint Integration Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
- name: Install Nix | |
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: golangci-lint | |
run: nix develop -c make lint-go-integration-tests | |
- name: Print lint report artifact | |
if: failure() | |
shell: bash | |
run: cat ./integration-tests/golangci-lint-integration-tests-report.xml | |
- name: Store lint report artifact | |
if: always() | |
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | |
with: | |
name: golangci-lint-integration-tests-report | |
path: ./integration-tests/golangci-lint-integration-tests-report.xml | |
golang_lint_relay: | |
name: Golang Lint Relay tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
- name: Install Nix | |
uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: golangci-lint | |
run: nix develop -c make lint-go-relay | |
- name: Print lint report artifact | |
if: failure() | |
shell: bash | |
run: cat ./pkg/golangci-lint-relay-report.xml | |
- name: Store lint report artifact | |
if: always() | |
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | |
with: | |
name: golangci-lint-relay-report | |
path: ./pkg/golangci-lint-relay-report.xml |