Skip to content

Commit

Permalink
Modernize repo (#7)
Browse files Browse the repository at this point in the history
* Make it a go module

Party like its 2019

* Remove old CI

* Add new CI

* Add new CI badge to README
  • Loading branch information
schmichael authored Sep 9, 2022
1 parent d9cfd74 commit 0afbb1e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 54 deletions.
35 changes: 0 additions & 35 deletions .appveyor.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run CI Tests
on: [push]
env:
GO_VERSION: 1.19.1
jobs:
run-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{env.GO_VERSION}}
- name: Run Go Vet
run: |
go vet ./...
- name: Run Go Fmt
run: |
files=$(go fmt ./...)
if [ -n "$files" ]; then
echo "Please run gofmt on these files ..."
echo "$files"
exit 1
fi
- name: Run Go Test
run: |
go test -race -v ./...
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[![GoDoc](https://godoc.org/github.com/hashicorp/go-envparse?status.svg)](https://godoc.org/github.com/hashicorp/go-envparse)
[![Build Status](https://travis-ci.org/hashicorp/go-envparse.svg?branch=master)](https://travis-ci.org/hashicorp/go-envparse)
[![Coverage Status](https://coveralls.io/repos/github/hashicorp/go-envparse/badge.svg?branch=master)](https://coveralls.io/github/hashicorp/go-envparse?branch=master)
[![Run CI Tests](https://github.com/hashicorp/go-envparse/actions/workflows/ci.yaml/badge.svg)](https://github.com/hashicorp/go-envparse/actions/workflows/ci.yaml)
[![Go Reference](https://pkg.go.dev/badge/pkg.go.dev/github.com/hashicorp/go-envparse.svg)](https://pkg.go.dev/pkg.go.dev/github.com/hashicorp/go-envparse)

# go-envparse

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/hashicorp/go-envparse

go 1.13

0 comments on commit 0afbb1e

Please sign in to comment.