From 984f4cfa24ee7e421bb1fbdf5907ae60375cf9ef Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 29 Jul 2024 04:53:25 -0400 Subject: use github contents api for image urls + summer cleaning (#253) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * nix: alejandra -> nixfmt-rfc-style * nix: pre-commit-hooks -> treefmt-nix * nix: use corepack * ci: cleanup workflows * ci: use better dependabot scopes * gitignore: extend with github templates * remove teawie-archive submodule * pnpm: 8.8.0 -> 9.6.0 * nix: add nrr to shell * nix: add node lsps to shell * use github contents api for image urls * ci: cleanup workflows * nix: add ci shell * `octokit` -> `fetch` & cache responses * nix: use nixpkgs wrangler * nix: update flake.lock Flake lock file updates: • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/d9c0b9d611277e42e6db055636ba0409c59db6d2' (2024-07-05) → 'github:NixOS/nixpkgs/038fb464fcfa79b4f08131b07f2d8c9a6bcc4160' (2024-07-28) * tsconfig: use strictest * adopt openapi * package.json: rename to teawie-api * nix: add treefmt to ci shell * ci: add release gate --- .github/workflows/eslint.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to '.github/workflows/eslint.yaml') diff --git a/.github/workflows/eslint.yaml b/.github/workflows/eslint.yaml index 4cecab1..0a6f7ce 100644 --- a/.github/workflows/eslint.yaml +++ b/.github/workflows/eslint.yaml @@ -3,37 +3,37 @@ name: ESLint on: push: branches: [main] + paths: + - "**.ts" + - "package.json" + - "pnpm-lock.yaml" + - "tsconfig.json" pull_request: jobs: eslint: - name: Run ESLint scan + name: Run scan + runs-on: ubuntu-latest permissions: security-events: write steps: - - uses: actions/checkout@v4 - with: - submodules: recursive + - name: Checkout repository + uses: actions/checkout@v4 - - name: Setup pnpm - uses: pnpm/action-setup@v4 - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: pnpm - cache-dependency-path: pnpm-lock.yaml + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v13 - name: Install Dependencies - run: pnpm install --frozen-lockfile + run: nix develop .#ci --command pnpm install --frozen-lockfile - name: Run ESLint continue-on-error: true - run: pnpm run lint --format @microsoft/eslint-formatter-sarif --output-file /tmp/results.sarif + run: | + nix develop .#ci --command \ + nrr lint --format @microsoft/eslint-formatter-sarif --output-file /tmp/results.sarif - name: Upload Results uses: github/codeql-action/upload-sarif@v3 -- cgit v1.2.3