diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index b97ffe0..59c577d 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -7,15 +7,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go uses: actions/setup-go@v4 with: go-version: 'stable' id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: Get Dependencies run: | go get -v -t -d ./... diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f49bb49..35e617c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,15 +7,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + - name: Set up Go uses: actions/setup-go@v4 with: go-version: 'stable' id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - name: Verify all files pass gofmt formatting run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then gofmt -s -d .; exit 1; fi diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 5d2c7c7..165c6aa 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,23 +1,22 @@ name: staticcheck on: pull_request jobs: + build: name: Check runs-on: ubuntu-latest steps: - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: "1.20" - id: go - - - name: "Set up repo" - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - - name: "staticcheck" - uses: dominikh/staticcheck-action@v1.3.0 - with: - install-go: false + + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 'stable' + id: go + + - name: "staticcheck" + uses: dominikh/staticcheck-action@v1.3.0 + with: + install-go: false