name: Lint on: push: paths: - 'frontend/**' - 'backend/**' - 'documentation/**' pull_request: paths: - 'frontend/**' - 'backend/**' - 'documentation/**' jobs: lint: runs-on: ubuntu-latest strategy: matrix: component: [backend, frontend, documentation] steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: version: 9 - uses: actions/setup-node@v4 with: node-version: 20 - name: Get pnpm store directory id: pnpm-cache shell: bash run: | echo "STORE_PATH=$(pnpm store path --silent)" >> "${GITEA_OUTPUT:-$GITHUB_OUTPUT}" - uses: actions/cache@v4 with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- - name: Install dependencies run: pnpm install --frozen-lockfile - name: Lint ${{ matrix.component }} run: pnpm -F @memegoat/${{ matrix.component }} lint