From ae2aa16406085f06bf46739e2400b9e9c845bc0d Mon Sep 17 00:00:00 2001 From: sgerhardt Date: Fri, 19 Jul 2024 08:45:37 -0500 Subject: [PATCH] update formatting --- .github/workflows/golangci-lint.yml | 36 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index c51691b..a5b6611 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -1,4 +1,4 @@ -name: Go Lint +name: Go CI on: push: @@ -9,29 +9,27 @@ on: - main jobs: - lint: - + lint-and-test: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: 1.22 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 1.22 - - name: Install golangci-lint - run: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1 + - name: Install dependencies + run: go mod download - - name: Install dependencies - run: go mod download + - name: Install golangci-lint + run: | + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1 - - name: Run golangci-lint - run: | - golangci-lint run + - name: Run golangci-lint + run: golangci-lint run - - name: Run tests - run: go test -v ./... \ No newline at end of file + - name: Run tests + run: go test -v ./...