chore(ci): fix test workflow (#280) #745
This file contains 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: Lint | |
on: | |
push: | |
paths: | |
- "**/*.go" | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
env: | |
GOFLAGS: -mod=readonly | |
strategy: | |
max-parallel: 6 | |
fail-fast: false | |
matrix: | |
directory: ["client", "server", "e2e"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: ${{ matrix.directory }}/go.mod | |
- name: Install Task | |
uses: arduino/setup-task@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install prettier | |
run: task -p deps:install:prettier | |
- name: Lint | |
run: task -p lint | |
- name: Install linter | |
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.1 | |
- name: Lint | |
working-directory: ${{ matrix.directory }} | |
run: make lint |