From 339002d2554b728da9cc70de4ab92d031dbeb045 Mon Sep 17 00:00:00 2001 From: Eric Buth Date: Fri, 31 May 2024 14:33:00 -0400 Subject: [PATCH] Go tests GitHub Actions workflow --- .github/workflows/test.yml | 16 ++++++++++++++++ go.mod | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..63be9c6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,16 @@ +name: test +run-name: Go tests +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 ./... 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