Skip to content

Commit

Permalink
add go mod, switch to github actions and drop support for old go vers…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
amalfra committed Jul 18, 2021
1 parent 83e6a87 commit 4d37470
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 14 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
release:
types: [published]
name: Publish
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- run: |
echo "publishing version: ${{steps.tag.outputs.tag}}"
curl https://proxy.golang.org/github.com/amalfra/etag/@v/${{steps.tag.outputs.tag}}.info
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: make test
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
etag
========
[![GitHub release](https://img.shields.io/github/release/amalfra/etag.svg)](https://github.com/amalfra/etag/releases)
[![Build Status](https://travis-ci.org/amalfra/etag.svg?branch=master)](https://travis-ci.org/amalfra/etag)
![Build Status](https://github.com/amalfra/etag/actions/workflows/test.yml/badge.svg?branch=main)
[![GoDoc](https://godoc.org/github.com/amalfra/etag?status.svg)](https://godoc.org/github.com/amalfra/etag)
[![Go Report Card](https://goreportcard.com/badge/github.com/amalfra/etag)](https://goreportcard.com/report/github.com/amalfra/etag)

Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/amalfra/etag

go 1.12

0 comments on commit 4d37470

Please sign in to comment.