-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (44 loc) · 1.12 KB
/
test.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: test
on:
push:
branches:
- main
paths-ignore:
# Ignore files that are not used in production
- "**.md"
- "LICENSE"
pull_request:
types:
- opened
- synchronize
- reopened
paths-ignore:
# Ignore files that are not used in production
- "**.md"
- "LICENSE"
jobs:
test:
runs-on: ubuntu-latest
services:
localstack:
image: postgres:14.3
ports:
- 15432:5432
env:
POSTGRES_USER: excellocal
POSTGRES_PASSWORD: password
POSTGRES_DB: excellocal
TZ: Asia/Tokyo
steps:
- name: setup go
uses: actions/setup-go@v3
with:
go-version: 1.x
- name: checkout
uses: actions/checkout@v3
# - name: Install GolangCI-Lint
# run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.48.0
# - name: Run GolangCI-Lint
# run: ./bin/golangci-lint run --config .golangci.yml
- name: test
run: go test -v ./...