diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0f40f0a2..49b0e35c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,15 +20,19 @@ jobs: - name: Install Dependencies run: | - sudo apt-get update - sudo apt-get install -y git python3-pip go install github.com/jstemmer/go-junit-report@v1.0.0 go install github.com/kyoh86/richgo@v0.3.10 go install gotest.tools/gotestsum@latest - pip install pre-commit - - name: Run pre-commit hooks - run: pre-commit run -a golangci-lint + - name: Install golangci-lint + uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0 + with: + version: v1.53.3 + + - name: Run golangci-lint + uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 + with: + extra_args: golangci-lint --all-files - name: Run tests with gotestsum run: | @@ -57,8 +61,9 @@ jobs: - name: Checkout Code uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 - - name: Install npm - run: sudo apt-get install -y npm + - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 + with: + node-version: 20 - name: Install action-docs run: npm install action-docs