1
0
Fork 0
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:
Jason Hall 2023-09-30 19:50:13 -04:00
parent cb8ca483d3
commit 0d469dc0aa
Failed to extract signature
4 changed files with 27 additions and 14 deletions

22
.github/workflows/build.yaml vendored Normal file
View 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 ./...

View file

@ -1,12 +0,0 @@
language: go
go:
- 1.4
- tip
notifications:
email:
recipients:
- imjasonh+travis@gmail.com
on_success: never
on_failure: change

View file

@ -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.

3
go.mod Normal file
View file

@ -0,0 +1,3 @@
module github.com/imjasonh/csvstruct
go 1.21.0