Skip to content

Commit

Permalink
Merge pull request #46 from coreosbot-releng/repo-templates
Browse files Browse the repository at this point in the history
Sync repo templates ⚙
  • Loading branch information
bgilbert committed May 30, 2023
2 parents 7b219c2 + a3fd2dd commit 6328231
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
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

0 comments on commit 6328231

Please sign in to comment.