release: v0.28.0 #7356
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: Build and Lint on Pull Request | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: ["opened", "synchronize", "ready_for_review"] | |
| jobs: | |
| lint-server: | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" # Specify the Python version you need | |
| - name: Install Pylint | |
| run: python -m pip install ruff | |
| - name: Install Server Dependencies | |
| run: cd apps/server && pip install -r requirements.txt | |
| - name: Lint apps/server | |
| run: ruff check --fix apps/server | |
| lint-admin: | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - run: yarn install | |
| - run: yarn lint --filter=admin | |
| lint-space: | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - run: yarn install | |
| - run: yarn lint --filter=space | |
| lint-web: | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - run: yarn install | |
| - run: yarn lint --filter=web | |
| build-admin: | |
| needs: lint-admin | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - run: yarn install | |
| - run: yarn build --filter=admin | |
| build-space: | |
| needs: lint-space | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - run: yarn install | |
| - run: yarn build --filter=space | |
| build-web: | |
| needs: lint-web | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - run: yarn install | |
| - run: yarn build --filter=web |