Browse Source

tests: fix ts lint error

antd@3
chenshuai2144 6 years ago
parent
commit
08718ea570
  1. 13
      .github/workflows/GitHub_Pages_Deploy.yml
  2. 10
      .github/workflows/ci.yml
  3. 2
      src/components/Authorized/Authorized.tsx
  4. 2
      src/layouts/BasicLayout.tsx
  5. 2
      src/pages/404.tsx

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
.github/workflows/ci.yml

@ -25,3 +25,13 @@ jobs:
PROGRESS: none PROGRESS: none
NODE_ENV: test NODE_ENV: test
NODE_OPTIONS: --max_old_space_size=4096 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 }}

2
src/components/Authorized/Authorized.tsx

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

2
src/layouts/BasicLayout.tsx

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

2
src/pages/404.tsx

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

Loading…
Cancel
Save