Skip to content

Fix lint errors

Fix lint errors #4

Workflow file for this run

name: CI Actions
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
workflow:
name: Lint/Build/Test
strategy:
matrix:
go-version: [1.18.x]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Configure git for private modules
env:
TOKEN: ${{ secrets.RESTRICTED_REPO_TOKEN}}
run: git config --global url."https://${TOKEN}:[email protected]/".insteadOf "https://github.com/"
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go-version}}
- name: Checkout Code Base
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Restore Go Module Cache
uses: actions/cache@v2
with:
path: ~/go/internal/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Make Lint
run: |
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export GOPRIVATE=github.com/AfterShip/*
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.3
go mod tidy
make lint
- name: Test