-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (35 loc) · 1002 Bytes
/
go-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
name: Go Test
on:
pull_request:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true
jobs:
localstack-s3-setup:
services:
s3:
image: localstack/localstack:s3-latest
ports:
- "127.0.0.1:4566:4566"
environment:
- DEBUG=${DEBUG:-0}
volumes:
- "./s3_local/init_s3.py:/etc/localstack/init/ready.d/init-s3.py"
steps:
- name: Wait for LocalStack to be ready
run: |
until curl -s http://127.0.0.1:4566/health | grep "\"s3\": \"running\""; do
echo "Waiting for LocalStack to start..."
sleep 5
done
go-test:
uses: ipdxco/unified-github-workflows/.github/workflows/go-test.yml@v1.0
with:
go-versions: '["this"]'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}