chore: expose port #301
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: Checks and Validation | |
| on: | |
| pull_request: | |
| jobs: | |
| linters: | |
| name: Run linters | |
| runs-on: ubuntu-latest | |
| permissions: | |
| checks: write | |
| contents: write | |
| steps: | |
| - uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3 | |
| id: app-token | |
| with: | |
| client-id: ${{ secrets.COMMIT_BOT_CLIENT_ID }} | |
| private-key: ${{ secrets.COMMIT_BOT_PRIVATE_KEY }} | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 # stable | |
| with: | |
| components: clippy,rustfmt | |
| - name: Cache cargo and rust files | |
| id: rust_cache | |
| uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 | |
| with: | |
| cache-on-failure: true | |
| shared-key: "linter_cache" | |
| - uses: bahmutov/npm-install@v1 | |
| - name: Generate svelte data | |
| run: | | |
| echo "BACKEND_URL=http://localhost:8000" > frontend/.env | |
| cd frontend && npm run sync | |
| - name: Run linters | |
| uses: profiidev/rust-lint-action@790d64dd437b648791344cbb590636ae3a47c923 # v4 | |
| with: | |
| rustfmt: true | |
| clippy: true | |
| auto_fix: true | |
| svelte: true | |
| svelte_args: "--ignore target" | |
| tsc: true | |
| tsc_dir: frontend | |
| oxlint: true | |
| oxfmt: true | |
| git_sign_commits: true | |
| github_token: ${{ steps.app-token.outputs.token }} |