GH workflow to test. #1
Workflow file for this run
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
# 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 |