Skip to content

Commit

Permalink
use staticcheck GH action instead
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkroh committed Mar 19, 2024
1 parent 129e486 commit 8e23344
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 36 deletions.
2 changes: 0 additions & 2 deletions .ci/scripts/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
go mod verify || EXIT /B 1
go run github.com/elastic/go-licenser@latest -d || EXIT /B 1

go run honnef.co/go/tools/cmd/staticcheck@2022.1 ./... || EXIT /B 1

go run golang.org/x/tools/cmd/goimports@latest -l -local github.com/elastic/go-windows . || EXIT /B 1

SET OUTPUT_JSON_FILE=build\output-report.out
Expand Down
1 change: 0 additions & 1 deletion .ci/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -e

go mod verify
go run github.com/elastic/go-licenser@latest -d
go run honnef.co/go/tools/cmd/staticcheck@2022.1 ./...
out=$(go run golang.org/x/tools/cmd/goimports@latest -l -local github.com/elastic/go-windows .)

if [ ! -z "$out" ]; then
Expand Down
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
open-pull-requests-limit: 2
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,21 @@ jobs:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
cache-dependency-path: '**/go.sum'

- uses: dominikh/staticcheck-action@v1.3.0
if: ${{ matrix.go-version == '1.22.x' }}
with:
version: "2023.1.7"
install-go: false
cache-key: ${{ matrix.go-version }}

- name: Test
run: ${{ startsWith(matrix.os,'windows') && '.ci/scripts/test.bat' || '.ci/scripts/test.sh' }}
env:
Expand Down
2 changes: 1 addition & 1 deletion NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Elastic go-windows
Copyright 2017-2019 Elasticsearch B.V.
Copyright 2017-2024 Elasticsearch B.V.

This product includes software developed at
Elasticsearch, B.V. (https://www.elastic.co/).
30 changes: 0 additions & 30 deletions Vagrantfile

This file was deleted.

0 comments on commit 8e23344

Please sign in to comment.