Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: cache + dependabot #5

Merged
merged 2 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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