-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1014 Bytes
/
lint-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
name: Go Lint & Test Sequence
run-name: Exec golangci-lint and go test
on:
push:
branches:
- main
- gh-action
jobs:
lint-and-test:
name: Lint and Test
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.5"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v5
with:
version: v1.57.2
- name: Start Docker Compose
run: |
docker-compose -f platform/local/docker-compose-database.yml up -d
sleep 5
- name: Set dummy AWS credentials
run: |
aws configure set aws_access_key_id dummy
aws configure set aws_secret_access_key dummy
aws configure set region ap-northeast-1
- name: Run dynamodb local setup
run: |
./platform/local/scripts/dynamodb-local-setup.sh
- name: Run Tests
run: go test ./...