From 022b4a2f24e06f4710f24ba6979362749870a4dd Mon Sep 17 00:00:00 2001 From: Eric Buth Date: Fri, 31 May 2024 14:33:00 -0400 Subject: [PATCH 1/2] Add a Go GitHub Actions workflow --- .github/workflows/go.yml | 17 +++++++++++++++++ go.mod | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..f9610ee --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,17 @@ +name: Go +on: [push] +jobs: + go-test-vet: + strategy: + matrix: + go-version: ['1.22', '1.21'] + runs-on: ubuntu-latest + name: go test, vet + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + check-latest: true + - run: go test -v -race ./... + - run: go vet ./... 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 From b11a046fdc3fad7e65750253e2df90f4f6ecb8ff Mon Sep 17 00:00:00 2001 From: Eric Buth Date: Sat, 1 Jun 2024 14:09:38 -0400 Subject: [PATCH 2/2] Add a Dependabot config --- .github/dependabot.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..0cfc43c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly"