From 0e606a27932d51b51c3ea9f56729500c1f2a8271 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 23 Aug 2021 16:16:56 +0800 Subject: [PATCH] workflow: add github actions config --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml 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 -- 2.39.5