mirror of
https://github.com/imjasonh/csvstruct
synced 2026-07-07 02:32:20 +00:00
update to use Go module and GitHub Actions
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
parent
cb8ca483d3
commit
0d469dc0aa
4 changed files with 27 additions and 14 deletions
22
.github/workflows/build.yaml
vendored
Normal file
22
.github/workflows/build.yaml
vendored
Normal file
|
|
@ -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 ./...
|
||||
12
.travis.yml
12
.travis.yml
|
|
@ -1,12 +0,0 @@
|
|||
language: go
|
||||
|
||||
go:
|
||||
- 1.4
|
||||
- tip
|
||||
|
||||
notifications:
|
||||
email:
|
||||
recipients:
|
||||
- imjasonh+travis@gmail.com
|
||||
on_success: never
|
||||
on_failure: change
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
[](https://godoc.org/github.com/ImJasonH/csvstruct)
|
||||
[](https://travis-ci.org/ImJasonH/csvstruct)
|
||||
[](https://godoc.org/github.com/ImJasonH/csvstruct)
|
||||
[](https://github.com/imjasonh/csvstruct/actions?query=workflow%3ABuild)
|
||||
|
||||
This library provides methods to read and write CSV data into and from Go structs.
|
||||
|
||||
|
|
|
|||
3
go.mod
Normal file
3
go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module github.com/imjasonh/csvstruct
|
||||
|
||||
go 1.21.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue