Skip to content

Commit

Permalink
Use a centrally managed GitHub Workflow for go tests
Browse files Browse the repository at this point in the history
* Use GitHub Workflow from https://github.com/dghubble/.github
* Test against Go v1.19 and v1.20
  • Loading branch information
dghubble committed Feb 28, 2023
1 parent a0f19eb commit ac2fc34
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 24 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
name: test
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: go
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ['1.18', '1.19']
steps:
- name: setup
uses: actions/setup-go@v3
with:
go-version: ${{matrix.go}}

- name: checkout
uses: actions/checkout@v3

- name: test
run: make
go:
uses: dghubble/.github/.github/workflows/golang-library.yaml@main
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Sling [![GoDoc](https://pkg.go.dev/badge/github.com/dghubble/sling.svg)](https://pkg.go.dev/github.com/dghubble/sling) [![Workflow](https://github.com/dghubble/sling/actions/workflows/test.yaml/badge.svg)](https://github.com/dghubble/sling/actions/workflows/test.yaml?query=branch%3Amain) [![Sponsors](https://img.shields.io/github/sponsors/dghubble?logo=github)](https://github.com/sponsors/dghubble) [![Mastodon](https://img.shields.io/badge/follow-news-6364ff?logo=mastodon)](https://fosstodon.org/@typhoon)
# Sling
[![GoDoc](https://pkg.go.dev/badge/github.com/dghubble/sling.svg)](https://pkg.go.dev/github.com/dghubble/sling)
[![Workflow](https://github.com/dghubble/sling/actions/workflows/test.yaml/badge.svg)](https://github.com/dghubble/sling/actions/workflows/test.yaml?query=branch%3Amain)
[![Sponsors](https://img.shields.io/github/sponsors/dghubble?logo=github)](https://github.com/sponsors/dghubble)
[![Mastodon](https://img.shields.io/badge/follow-news-6364ff?logo=mastodon)](https://fosstodon.org/@typhoon)

<img align="right" src="https://storage.googleapis.com/dghubble/small-gopher-with-sling.png">

Expand Down
2 changes: 1 addition & 1 deletion examples/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/dghubble/sling/examples

go 1.18
go 1.19

require (
github.com/coreos/pkg v0.0.0-20230209195159-6f3db454fdf8
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/dghubble/sling

go 1.18
go 1.19

require github.com/google/go-querystring v1.1.0

0 comments on commit ac2fc34

Please sign in to comment.