└── water /water: -------------------------------------------------------------------------------- 1 | name: ⬣ Lint 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | - dev 8 | pull_request: 9 | 10 | concurrency: 11 | group: ${{ github.workflow }}-${{ github.ref }} 12 | cancel-in-progress: true 13 | 14 | jobs: 15 | lint: 16 | name: ⬣ Lint 17 | runs-on: ubuntu-latest 18 | steps: 19 | - name: ⬇️ Checkout repo 20 | uses: actions/checkout@v4 21 | 22 | - name: 📦 Setup pnpm 23 | uses: pnpm/action-setup@v3.0.0 24 | 25 | - name: ⎔ Setup node 26 | uses: actions/setup-node@v4 27 | with: 28 | node-version-file: ".nvmrc" 29 | cache: "pnpm" 30 | 31 | - name: Disable GitHub Actions Annotations 32 | run: | 33 | echo "::remove-matcher owner=tsc::" 34 | echo "::remove-matcher owner=eslint-compact::" 35 | echo "::remove-matcher owner=eslint-stylish::" 36 | 37 | - name: 📥 Install deps 38 | run: pnpm install --frozen-lockfile 39 | 40 | - name: 🔬 Lint 41 | run: pnpm lint 42 | 43 | - name: 🦕 Install Deno 44 | uses: denoland/setup-deno@v1 45 | with: 46 | deno-version: vx.x.x 47 | 48 | - name: 🔬 Lint deno files 49 | run: pnpm lint:deno 50 | --------------------------------------------------------------------------------