Skip to content

Commit

Permalink
GH workflow to test.
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Souza <[email protected]>
  • Loading branch information
artursouza committed Mar 9, 2024
1 parent 28dd6ee commit 1d02f70
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
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

0 comments on commit 1d02f70

Please sign in to comment.