Skip to content

Commit a7ec448

Browse files
authored
Merge pull request #68 from ddelnano/ddelnano/add-dependabot-and-pr-testing
Add dependabot and ci job for running go tests. Ensure go versions are consistent
2 parents 83b1052 + bea09bb commit a7ec448

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod" # See documentation for possible values
4+
directory: "/" # Location of package manifests
5+
schedule:
6+
interval: "daily"

.github/workflows/go-test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: go-test
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
go-tests:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Unshallow
18+
run: git fetch --prune --unshallow
19+
- name: Set up Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: 1.16
23+
- name: Run go tests
24+
run: go test -race -count 1 ./... -timeout=3m

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Go
2626
uses: actions/setup-go@v2
2727
with:
28-
go-version: 1.17
28+
go-version: 1.16
2929
- name: Describe plugin
3030
id: plugin_describe
3131
run: echo "::set-output name=api_version::$(go run . describe | jq -r '.api_version')"

0 commit comments

Comments
 (0)