-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 996 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
- 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@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
- uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86
with:
version: v1.60.3