Skip to content

Commit

Permalink
chore: update golangci-lint v1.61.0; disable yaegi testing (#10)
Browse files Browse the repository at this point in the history
* chore: update yaegi v0.16.1 and golangci-lint v1.61.0

* fix(ci): copy go vendor to gopath

github.com/traefik/yaegi/issues/656#issuecomment-1449633582

* fix(ci): use gopath setup in step in advance

* chore(ci): disable yaegi testing
  • Loading branch information
fty4 authored Oct 1, 2024
1 parent b92e0ec commit 96276e3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
runs-on: ubuntu-latest
env:
GO_VERSION: 1.23.1
GOLANGCI_LINT_VERSION: v1.50.0
YAEGI_VERSION: v0.14.2
GOLANGCI_LINT_VERSION: v1.61.0
# YAEGI_VERSION: v0.16.1
# YAEGI_UNSAFE: 1
CGO_ENABLED: 0
defaults:
run:
Expand Down Expand Up @@ -48,8 +49,8 @@ jobs:
- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}

- name: Install Yaegi ${{ env.YAEGI_VERSION }}
run: curl -sfL https://raw.githubusercontent.com/traefik/yaegi/master/install.sh | bash -s -- -b $(go env GOPATH)/bin ${YAEGI_VERSION}
# - name: Install Yaegi ${{ env.YAEGI_VERSION }}
# run: curl -sfL https://raw.githubusercontent.com/traefik/yaegi/master/install.sh | bash -s -- -b $(go env GOPATH)/bin ${YAEGI_VERSION}

- name: Setup GOPATH
run: go env -w GOPATH=${{ github.workspace }}/go
Expand All @@ -62,11 +63,12 @@ jobs:
go mod download
go mod vendor
# git diff --exit-code ./vendor/
cp -R vendor/ ${{ github.workspace }}/go/src/
- name: Lint and Tests
run: make

- name: Run tests with Yaegi
run: make yaegi_test
env:
GOPATH: ${{ github.workspace }}/go
# - name: Run tests with Yaegi
# run: make yaegi_test
# env:
# GOPATH: ${{ github.workspace }}/go

0 comments on commit 96276e3

Please sign in to comment.