Skip to content

Merge pull request #37 from supabase-community/development #48

Merge pull request #37 from supabase-community/development

Merge pull request #37 from supabase-community/development #48

Workflow file for this run

name: golangci-lint
on:
push:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v2
with:
go-version: 1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build Project
run: go build -v .
- name: Run Tests
run: go test -v ./...
- name: Get golangci-lint
run: wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.38.0
- name: Run linter
run: ./bin/golangci-lint run --out-format=line-number --timeout=15m