From 82a8ab59f2bc46a0bb442ff8722e3ad2fdd36618 Mon Sep 17 00:00:00 2001 From: githoniel Date: Wed, 12 May 2021 10:51:20 +0800 Subject: [PATCH] chore: use github action --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .travis.yml | 14 -------------- 2 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..2b682ba1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: 'ci' +on: + push: + branches: + - '**' + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: bahmutov/npm-install@v1 + - name: Run unit tests + - run: yarn lint + - run: yarn style + - run: yarn test + - run: yarn test:types diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b182fda7..00000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -dist: bionic -language: node_js -cache: yarn -node_js: - - '10' - - '12' - - '14' -install: - - yarn --frozen-lockfile -script: - - yarn lint - - yarn style - - yarn test - - yarn test:types