| name: Lint & Compile |
| |
| # Controls when the workflow will run |
| on: |
| # Triggers the workflow on push or pull request events but only for the "development" branch |
| push: |
| branches: ["development"] |
| pull_request: |
| branches: ["development"] |
| |
| # Allows you to run this workflow manually from the Actions tab |
| workflow_dispatch: |
| |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| jobs: |
| lint: |
| runs-on: ubuntu-latest |
| |
| steps: |
| - uses: actions/checkout@v3 |
| - uses: cachix/install-nix-action@v19 |
| with: |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} |
| - run: nix develop --command pnpm install --frozen-lockfile |
| - name: Show versions |
| run: nix develop --command pnpm run versions |
| - name: Compile |
| run: nix develop --command pnpm run build build |
| - name: Run prettier and eslint |
| run: nix develop --command pnpm run lint-ci |