diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2eef248..2e687d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,16 +18,13 @@ jobs: steps: - name: Set up Go ${{ matrix.goVer }} - uses: actions/setup-go@v1 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.goVer }} id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Set Git to handle line endings consistently - run: git config --global core.autocrlf false + uses: actions/checkout@v4 - name: Format Check if: matrix.os != 'windows-latest' @@ -35,9 +32,7 @@ jobs: diff -u <(echo -n) <(gofmt -d .) - name: Get dependencies - run: | - go get -v -t -d ./... - go get gopkg.in/check.v1 + run: go get -v ./... - name: Build run: go build -v ./... diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1e05365..bdee830 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,11 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Set Golang - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: "1.21.x" - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check spelling with custom config file uses: crate-ci/typos@master diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f97f5b6..5c2da14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,10 +8,10 @@ jobs: steps: - name: Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Golang - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: "1.21.x" diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index b90d3cc..ba65018 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -5,7 +5,7 @@ on: - main workflow_dispatch: -name: unit tests +name: Tests jobs: test: strategy: @@ -16,11 +16,11 @@ jobs: steps: - name: Install Go if: success() - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run tests run: go test -v ./... -covermode=count @@ -29,11 +29,11 @@ jobs: steps: - name: Install Go if: success() - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: "1.21.x" - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Calc coverage run: | go test -v ./... -covermode=count -coverprofile=coverage.out