Skip to content

Merge pull request #47 from supabase-community/org-name-change #57

Merge pull request #47 from supabase-community/org-name-change

Merge pull request #47 from supabase-community/org-name-change #57

Workflow file for this run

name: golangci-lint
on:
push:
branches:
- main
- development
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.21.1
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.54.2
- name: Run linter
run: ./bin/golangci-lint run --out-format=line-number --timeout=15m