소스 검색

✅ tests: fix ts lint error

chenshuai2144 6 년 전
부모
커밋
08718ea570
5개의 변경된 파일13개의 추가작업 그리고 16개의 파일을 삭제
  1. 0 13
      .github/workflows/GitHub_Pages_Deploy.yml
  2. 10 0
      .github/workflows/ci.yml
  3. 1 1
      src/components/Authorized/Authorized.tsx
  4. 1 1
      src/layouts/BasicLayout.tsx
  5. 1 1
      src/pages/404.tsx

+ 0 - 13
.github/workflows/GitHub_Pages_Deploy.yml

@@ -1,13 +0,0 @@
-name: Deploy to GitHub Pages
-on: [push]
-jobs:
-  Deploy:
-    name: Deploy to GitHub Pages
-    runs-on: ubuntu-latest
-    if: success() && github.event == 'push' && github.ref == 'master'
-    steps:
-      - name: publish
-        uses: maxheld83/ghpages@v0.2.1
-        env:
-          BUILD_DIR: 'dist/'
-          GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}

+ 10 - 0
.github/workflows/ci.yml

@@ -25,3 +25,13 @@ jobs:
           PROGRESS: none
           NODE_ENV: test
           NODE_OPTIONS: --max_old_space_size=4096
+  deploy:
+    name: Deploy to GitHub Pages
+    runs-on: ubuntu-latest
+    if: success() && github.event == 'push' && github.ref == 'master'
+    steps:
+      - name: publish
+        uses: maxheld83/ghpages@v0.2.1
+        env:
+          BUILD_DIR: 'dist/'
+          GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}

+ 1 - 1
src/components/Authorized/Authorized.tsx

@@ -21,7 +21,7 @@ const Authorized: React.FunctionComponent<AuthorizedProps> = ({
   authority,
   noMatch = (
     <Result
-      status="403"
+      status={403}
       title="403"
       subTitle="Sorry, you are not authorized to access this page."
     />

+ 1 - 1
src/layouts/BasicLayout.tsx

@@ -25,7 +25,7 @@ import logo from '../assets/logo.svg';
 
 const noMatch = (
   <Result
-    status="403"
+    status={403}
     title="403"
     subTitle="Sorry, you are not authorized to access this page."
     extra={

+ 1 - 1
src/pages/404.tsx

@@ -7,7 +7,7 @@ import { router } from 'umi';
 
 const NoFoundPage: React.FC<{}> = () => (
   <Result
-    status="404"
+    status={404}
     title="404"
     subTitle="Sorry, the page you visited does not exist."
     extra={