-
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 827 Bytes
/
test.yaml
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
name: Go Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch: {}
jobs:
test:
runs-on: ubuntu-latest
env:
AWS_REGION: local
AWS_ACCESS_KEY_ID: "accessKey"
AWS_SECRET_ACCESS_KEY: "secretKey"
AWS_S3_ENDPOINT: "http://localhost:9000"
services:
minio:
image: bitnami/minio
env:
MINIO_ROOT_USER: "accessKey"
MINIO_ROOT_PASSWORD: "secretKey"
ports:
- 9000:9000
options: --health-cmd="curl http://localhost:9000/minio/health/live"
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: Test
run: go test -v -cover ./...