test6 #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Main | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| main: | |
| name: Main Process | |
| runs-on: ubuntu-latest | |
| env: | |
| GO_VERSION: 1.22 | |
| YAEGI_VERSION: v0.16.1 | |
| CGO_ENABLED: 0 | |
| steps: | |
| # https://github.com/marketplace/actions/setup-go-environment | |
| - name: Set up Go ${{ env.GO_VERSION }} | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| # https://github.com/marketplace/actions/checkout | |
| - name: Check out code | |
| uses: actions/checkout@v5 | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| - 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: Check and get dependencies | |
| run: | | |
| go mod tidy | |
| git diff --exit-code go.mod | |
| git diff --exit-code go.sum | |
| go mod download | |
| go mod vendor | |
| # git diff --exit-code ./vendor/ | |
| - name: Run tests | |
| run: go test -v -cover ./... | |
| - name: Run tests with Yaegi | |
| run: yaegi test -v . |