From 5e27b131aef9dd129289345795c30953d99499d9 Mon Sep 17 00:00:00 2001 From: "Wilson E. Husin" Date: Mon, 8 Apr 2024 12:27:28 -0700 Subject: [PATCH 1/2] ci: share go mod cache for better efficiency --- .github/workflows/build-test.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 8fb45ef..d3f8d5b 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -13,8 +13,31 @@ permissions: checks: write jobs: + mod: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: 1.22.x + cache-dependency-path: | + ./go.sum + _tools/go.sum + + - name: Go version + run: go version + + - name: Go mod tidy + run: | + go mod tidy + cd _tools && go mod tidy && cd .. + git diff --exit-code + test: runs-on: ubuntu-latest + needs: [mod] steps: - uses: actions/checkout@v4 @@ -43,6 +66,7 @@ jobs: lint: runs-on: ubuntu-latest + needs: [mod] steps: - uses: actions/checkout@v4 @@ -68,6 +92,7 @@ jobs: build: runs-on: ubuntu-latest + needs: [mod] steps: - uses: actions/checkout@v4 From ff5a9037ddb93a6e14f2ace96e5a60525af6c6d6 Mon Sep 17 00:00:00 2001 From: "Wilson E. Husin" Date: Tue, 9 Apr 2024 09:01:17 -0700 Subject: [PATCH 2/2] dependabot --- .github/dependabot.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/dependabot.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..c0e2da1 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "daily" + reviewers: + - "firehydrant/open-source-maintainers" + - package-ecosystem: "gomod" + directory: "/_tools" + schedule: + interval: "daily" + reviewers: + - "firehydrant/open-source-maintainers"