]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
workflow: add github actions config
authorHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 23 Aug 2021 08:16:56 +0000 (16:16 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Mon, 23 Aug 2021 08:16:56 +0000 (16:16 +0800)
.github/workflows/ci.yml [new file with mode: 0644]

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644 (file)
index 0000000..1a1b663
--- /dev/null
@@ -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