Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Combine svelte-check with tsc check
Alexis Sellier committed 4 years ago
commit 9a11bb8ebd05fb1b6caf734954cc569d71c33c90
parent 8b166c9773ecd77da0f1ebc902fc8cce8a4e32fa
4 files changed +17 -14
added .github/workflows/check.yml
@@ -0,0 +1,13 @@
+
name: check
+
on: [push, pull_request]
+

+
jobs:
+
  check:
+
    runs-on: ubuntu-latest
+
    steps:
+
      - uses: actions/checkout@v2
+
      - uses: actions/setup-node@v1
+
        with:
+
          node-version: '14'
+
      - run: npm ci
+
      - run: npm run check
deleted .github/workflows/svelte-check.yml
@@ -1,13 +0,0 @@
-
name: svelte-check
-
on: [push, pull_request]
-

-
jobs:
-
  svelte-check:
-
    runs-on: ubuntu-latest
-
    steps:
-
      - uses: actions/checkout@v2
-
      - uses: actions/setup-node@v1
-
        with:
-
          node-version: '14'
-
      - run: npm ci
-
      - run: npm run check
modified package.json
@@ -3,7 +3,7 @@
    "start": "vite",
    "serve": "vite preview",
    "build": "scripts/build",
-
    "check": "svelte-check",
+
    "check": "scripts/check",
    "test": "echo \"This template does not include a test runner by default.\" && exit 1"
  },
  "type": "module",
added scripts/check
@@ -0,0 +1,3 @@
+
#!/bin/sh
+

+
npx tsc --noEmit && npx svelte-check