remove text decoder method + fix ownership estimation (#196) #448
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: | |
branches: [main] | |
pull_request: | |
jobs: | |
lint-server: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./server | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: installing dependencies | |
uses: ./.github/actions/install | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: run golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.59 | |
args: --timeout=3m | |
working-directory: ./server | |
- name: install gofumpt | |
run: go install mvdan.cc/gofumpt@latest | |
- name: run gofumpt | |
run: | | |
ERRORS=$(gofumpt -l . | wc -l) | |
if [[ "$ERRORS" != "0" ]]; then | |
echo "following files are not gofumpted:" | |
gofumpt -l . | |
exit 1 | |
fi | |
lint-cli: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./cli | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
cache-dependency-path: ./cli/package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Run code formating and linting | |
run: npm run fmt:check | |
lint-frontend: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./server/pages | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
cache-dependency-path: ./server/pages/package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Run code formating and linting | |
run: npm run lint:check |