Skip to content

Update ci.yml

Update ci.yml #38

Workflow file for this run

name: "Linters for Pull Request"
on:
pull_request:
branches:
- 'main'
workflow_dispatch:
defaults:
run:
working-directory: ./
jobs:
lint:
runs-on: [self-hosted, Linux]
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Configure git for private modules
run: |
git config --global url."https://${{ secrets.GO_MODULES_TOKEN }}:[email protected]/DeBankDeFi".insteadOf "https://github.com/DeBankDeFi"
- name: Golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.42.1
only-new-issues: true
skip-pkg-cache: true
skip-build-cache: true