From: Haoqun Jiang Date: Mon, 23 Aug 2021 08:16:56 +0000 (+0800) Subject: workflow: add github actions config X-Git-Tag: v3.0.0-beta.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e606a27932d51b51c3ea9f56729500c1f2a8271;p=thirdparty%2Fvuejs%2Fcreate-vue.git workflow: add github actions config --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..1a1b6632 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: 'ci' +on: + push: + branches: + - '**' + pull_request: + branches: + - main +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + node_version: + - 12 + - 14 + - 16 + name: Node ${{ matrix.node_version }} on ${{ matrix.os }} + steps: + - uses: actions/checkout@v1 + - uses: pnpm/action-setup@v2.0.1 + with: + version: 6 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node_version }} + cache: 'pnpm' + - run: pnpm install + - run: pnpm test