From 64d2f536b6757eef257651d0f2b909c91f571cef Mon Sep 17 00:00:00 2001 From: Kia King Ishii Date: Sat, 23 Jan 2021 00:45:04 +0900 Subject: [PATCH] ci: add ci test --- .github/workflows/test.yml | 20 ++++++++++++++++++++ README.md | 1 + 2 files changed, 21 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 00000000..488ab91f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Test + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14, 15] + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: install and test + run: | + yarn install + yarn test diff --git a/README.md b/README.md index b1d62227..349b8c79 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # (WIP) VitePress 📝💨 +[![Test](https://github.com/vuejs/vitepress/workflows/Unit%20Test/badge.svg)](https://github.com/vuejs/vitepress/actions) [![npm](https://img.shields.io/npm/v/vitepress)](https://www.npmjs.com/package/vitepress) ---