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

Sync repo templates ⚙ #46

Merged
merged 1 commit into from
May 30, 2023
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
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Maintained in https://github.com/coreos/repo-templates
# Do not edit downstream.

version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 10
labels:
- dependency
24 changes: 17 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
name: Go
# Maintained in https://github.com/coreos/repo-templates
# Do not edit downstream.

name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

# don't waste job slots on superseded code
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-build:
name: Test build
test:
name: Test
strategy:
matrix:
go-version: [1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x]
Expand All @@ -23,10 +29,14 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Check out repository
uses: actions/checkout@v3
- name: Run tests
run: go test ./...
- name: Check modules
run: go mod verify
- name: Build
run: go build
- name: Test
run: go test -v ./...
- name: Run linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.1
version: v1.52.2
args: -E=gofmt --timeout=30m0s
Loading