Skip to content

Commit

Permalink
Merge pull request #314 from adamcstephens/updaters
Browse files Browse the repository at this point in the history
Update actions, go modules, and enable dependabot
  • Loading branch information
adamcstephens authored Aug 10, 2023
2 parents 30f43cf + 20e5803 commit a4488d9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
groups:
hashicorp:
patterns:
- github.com/hashicorp/*
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: '1.20'
-
name: Import GPG key
id: import_gpg
uses: paultyng/ghaction-import-gpg@v2.1.0
uses: crazy-max/ghaction-import-gpg@v5
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
fail-fast: false
matrix:
go-version:
- "1.20"
- '1.20'
channel:
- latest/stable
- latest/candidate
Expand All @@ -25,7 +25,7 @@ jobs:

steps:
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

Expand All @@ -36,7 +36,7 @@ jobs:
sudo lxd init --auto --trust-password="$LXD_PASSWORD" --network-port=8443 --network-address='[::]'
sudo chmod 777 /var/snap/lxd/common/lxd/unix.socket
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: make fmtcheck
- run: make vet
- run: make test

0 comments on commit a4488d9

Please sign in to comment.