-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (35 loc) · 1.02 KB
/
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
45
name: Go
on: [push, pull_request]
env:
DONUTDB_DYNAMODB_LOCAL_DIR: /tmp/dynamodb_local
jobs:
build:
name: Build/Test
runs-on: ${{ matrix.os }}
timeout-minutes: 3
strategy:
matrix:
go-version: [1.19.8, 1.20.3]
os: [ubuntu-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Fetch DynamoDB Local
run: |
mkdir $DONUTDB_DYNAMODB_LOCAL_DIR
wget https://s3.us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz
tar -xf dynamodb_local_latest.tar.gz -C $DONUTDB_DYNAMODB_LOCAL_DIR
- name: Build
run: go build -v ./...
- name: Build extension
run: make -C donutdb-loadable
- name: Test
run: go test -v ./... --timeout 60s
- name: Meta Tests
run: go test -v -tags ci ./ci --timeout 60s
if: ${{ runner.os == 'Linux' }}