chore: remove unnecessary if statement #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: install-dependencies | |
run: | | |
sudo apt-get install -y libgeos-dev postgis postgresql | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 | |
- run: go build ./... | |
- name: init-database | |
run: | | |
sudo systemctl start postgresql.service | |
sudo -u postgres createuser -s "${USER}" | |
createdb "${USER}" | |
- run: go test ./... | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: install-dependencies | |
run: | | |
sudo apt-get install -y libgeos-dev | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 | |
- uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 | |
with: | |
version: v1.59.0 |