-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Artur Souza <[email protected]>
- Loading branch information
1 parent
28dd6ee
commit 1d02f70
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright (c) 2024 Diagrid Inc. | ||
# Licensed under the MIT License. | ||
|
||
name: "Build and testing" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
services: | ||
etcd: | ||
image: quay.io/coreos/etcd:v3.5.5 | ||
env: | ||
ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379 | ||
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379 | ||
ports: | ||
- 2379:2379 | ||
env: | ||
GOOS: linux | ||
GOARCH: amd64 | ||
GOPROXY: https://proxy.golang.org | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: 'false' | ||
- name: Run test | ||
run: go test |