From fa2b7cb9dd62384f2d1b83d76c578caad766c1a9 Mon Sep 17 00:00:00 2001 From: Binbin Sun Date: Sun, 29 Dec 2019 22:31:23 +0800 Subject: [PATCH 1/2] Create test.yml --- .github/workflows/test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..db65b91 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,15 @@ +name: CI + +on: [pull_request, push] + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - name: npm install, lint and test + run: | + npm install + npm run lint + npm run test:unit From b07e14b9ff0fb2e8bbd955e6e7c572339949e4fd Mon Sep 17 00:00:00 2001 From: Binbin Sun Date: Sun, 29 Dec 2019 22:40:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=F0=9F=A4=96=20update=20test.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db65b91..036e747 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,15 +1,15 @@ -name: CI +name: Test on: [pull_request, push] jobs: test: - runs-on: ubuntu-latest steps: - - name: npm install, lint and test - run: | - npm install - npm run lint - npm run test:unit + - uses: actions/checkout@v1 + - name: npm install, lint and test + run: | + npm install + npm run lint + npm run test:unit