-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (35 loc) · 901 Bytes
/
go.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
name: Go
on:
push:
branches:
- master
pull_request:
env:
# renovate: datasource=golang-version depName=golang
GO_VERSION: '1.21.4'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup DynamoDB Local
uses: rrainn/dynamodb-action@a839324dce7bae1fafac6a62922e37675c6caf23 # v3.0.0
with:
port: '8000'
cors: '*'
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4
with:
go-version: '${{ env.GO_VERSION }}'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -cover ./...
env:
AWS_REGION: local