Add a voting feature (upvote/downvote) #3179
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: Linters | |
| permissions: read-all | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| jshint: | |
| name: Javascript Linter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install linters | |
| run: | | |
| sudo npm install -g [email protected] [email protected] | |
| - name: Run jshint | |
| run: jshint internal/ui/static/js/*.js | |
| - name: Run ESLint | |
| run: eslint internal/ui/static/js/*.js | |
| golangci: | |
| name: Golang Linters | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: stable | |
| - uses: golangci/golangci-lint-action@v9 | |
| - name: Run gofmt linter | |
| run: gofmt -d -e . | |
| commitlint: | |
| if: github.event_name == 'pull_request' | |
| name: Commit Linter | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: Validate PR commits | |
| run: python3 .github/workflows/scripts/commit-checker.py --base ${{ github.event.pull_request.base.sha }} --head ${{ github.event.pull_request.head.sha }} |