diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..dac7209 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,26 @@ +name: Go +on: [push] +jobs: + test: + strategy: + matrix: + go-version: ['1.22', '1.21'] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + check-latest: true + - run: go test -v -race ./... + vulncheck: + strategy: + matrix: + go-version: ['1.22', '1.21'] + runs-on: ubuntu-latest + name: Run govulncheck + steps: + - uses: golang/govulncheck-action@v1 + with: + go-version-input: ${{ matrix.go-version }} + check-latest: true \ No newline at end of file diff --git a/go.mod b/go.mod index 85e7d83..14b0326 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/buth/diff -go 1.19 +go 1.21.0