From 26ea8bee51dc4ca21d7dc1fb879758551835c354 Mon Sep 17 00:00:00 2001 From: Achille Roussel Date: Fri, 26 May 2023 22:57:05 -0700 Subject: [PATCH] try re-enabling golangci-lint Signed-off-by: Achille Roussel --- .github/workflows/build.yml | 49 ++++++++++++++----------------------- 1 file changed, 19 insertions(+), 30 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eeb0f3e0..785feb27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,46 +22,35 @@ jobs: name: Spell Check runs-on: ubuntu-latest steps: - - name: Checkout Actions Repository - uses: actions/checkout@v3 - - - name: Check spelling of Go files - uses: crate-ci/typos@master + - uses: actions/checkout@v3 + - uses: crate-ci/typos@master with: files: '*.go' write_changes: true - # TODO: golangci-lint does not work well with the dot-import of wasi-go, - # it fails to find the symbols; maybe related to not being able to download - # private dependencies? - # - # golangci-lint: - # name: Go Lint - # runs-on: ubuntu-latest - # timeout-minutes: 30 - # steps: - # - uses: actions/checkout@v3 - - # - name: Set up Go - # uses: actions/setup-go@v4 - # with: - # go-version-file: go.mod - # check-latest: true - - # - name: golangci-lint - # uses: golangci/golangci-lint-action@v3 - # with: - # version: v1.52.2 - # args: --timeout 5m + golangci-lint: + name: Go Lint + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version-file: go.mod + check-latest: true + - run: git config --global url.https://$GH_ACCESS_TOKEN@github.com.insteadOf https://github.com + - run: go mod download + - uses: golangci/golangci-lint-action@v3 + with: + version: v1.52.2 + args: --timeout 5m test: name: Go Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v4 + - uses: actions/setup-go@v4 with: go-version-file: go.mod check-latest: true