Skip to content

fix review comments #873

fix review comments

fix review comments #873

Workflow file for this run

name: Linter
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
solhint:
runs-on: ubuntu-20.04
steps:
- name: Checkout teleporter
uses: actions/checkout@v4
- name: Install solhint
run: |
npm install solhint -g
solhint --version
- name: Run Lint
run: |
./scripts/lint.sh
golangci:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: teleporter
submodules: recursive
- name: Set Go version
run: |

Check failure on line 37 in .github/workflows/linter.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/linter.yml

Invalid workflow file

You have an error in your yaml syntax on line 37
source ./scripts/versions.sh
GO_VERSION=$GO_VERSION >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
# To reproduce the linter locally, make sure to run golangci-lint from teleporter/tests
working-directory: ./teleporter/tests
args: --timeout 10m