Skip to content

feat: add initial project infrastructure #12

feat: add initial project infrastructure

feat: add initial project infrastructure #12

Workflow file for this run

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@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
- 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@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
- uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5
with:
version: v1.52.2