diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..c04eb27 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,22 @@ +name: Build + +on: + pull_request: + branches: + - 'main' + push: + branches: + - 'main' + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 + with: + go-version-file: 'go.mod' + - uses: golang/govulncheck-action@dd3ead030e4f2cf713062f7a3395191802364e13 # v1 + + - run: go test -race ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4cce566..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: go - -go: - - 1.4 - - tip - -notifications: - email: - recipients: - - imjasonh+travis@gmail.com - on_success: never - on_failure: change diff --git a/README.md b/README.md index 298563c..8024339 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![GoDoc](https://godoc.org/github.com/ImJasonH/csvstruct?status.png)](https://godoc.org/github.com/ImJasonH/csvstruct) -[![Build Status](https://travis-ci.org/ImJasonH/csvstruct.svg?branch=master)](https://travis-ci.org/ImJasonH/csvstruct) +[![GoDoc](https://godoc.org/github.com/imjasonh/csvstruct?status.png)](https://godoc.org/github.com/ImJasonH/csvstruct) +[![GitHub Actions Build Status](https://github.com/imjasonh/csvstruct/workflows/Build/badge.svg)](https://github.com/imjasonh/csvstruct/actions?query=workflow%3ABuild) This library provides methods to read and write CSV data into and from Go structs. diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..2422e83 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/imjasonh/csvstruct + +go 1.21.0