Skip to content

Commit

Permalink
ci: cache + dependabot (#5)
Browse files Browse the repository at this point in the history
* ci: share go mod cache for better efficiency
* dependabot
  • Loading branch information
wilsonehusin authored Apr 9, 2024
1 parent 0fbd112 commit 3cbefd8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -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"
25 changes: 25 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -43,6 +66,7 @@ jobs:
lint:
runs-on: ubuntu-latest
needs: [mod]
steps:
- uses: actions/checkout@v4

Expand All @@ -68,6 +92,7 @@ jobs:
build:
runs-on: ubuntu-latest
needs: [mod]
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 3cbefd8

Please sign in to comment.