-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (35 loc) · 902 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.23.4'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup DynamoDB Local
uses: rrainn/dynamodb-action@36eaff1005b37a22258716d4280f9e0377b834aa # v4.0.0
with:
port: '18000'
cors: '*'
- name: Check out code into the Go module directory
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
with:
go-version: '${{ env.GO_VERSION }}'
id: go
- 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