more files to ignore for textlint #128
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: Tests | |
| on: [push, pull_request] | |
| env: | |
| GOPROXY: https://proxy.golang.org | |
| jobs: | |
| lint-text: | |
| name: lint-text | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Unshallow | |
| run: git fetch --prune --unshallow | |
| - name: Set up Go | |
| uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Setup tools | |
| run: | | |
| make tools | |
| - name: make lint-text | |
| run: | | |
| make lint-text | |
| lint-go: | |
| name: lint-go | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Unshallow | |
| run: git fetch --prune --unshallow | |
| - name: Set up Go | |
| uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Setup tools | |
| run: | | |
| make tools | |
| - name: make lint-go | |
| run: | | |
| # Explicitly set GOROOT to avoid golangci-lint/issues/3107 | |
| GOROOT=$(go env GOROOT) | |
| export GOROOT | |
| make lint-go | |
| - name: make vulncheck | |
| run: | | |
| make vulncheck | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go-version: | |
| - stable | |
| - oldstable | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Unshallow | |
| run: git fetch --prune --unshallow | |
| - name: Set up Go | |
| uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 | |
| with: | |
| go-version: ${{ matrix['go-version'] }} | |
| - name: Setup tools | |
| run: | | |
| make tools | |
| - name: make test | |
| run: | | |
| make test |