From 5388f7cceb1df5304cdce14ea43374f3c345581c Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 10 Jun 2022 19:01:03 +0800 Subject: [PATCH] ci: setup github actions --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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 0000000..5acb3f1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: 'ci' +on: + push: + branches: + - '**' + paths-ignore: + - README.md + pull_request: + branches: + - '**' +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + node-version: + - 16 + name: Node ${{ matrix.node-version }} on ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + with: + submodules: 'recursive' + - uses: pnpm/action-setup@v2 + with: + version: 7 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - run: pnpm install + - run: pnpm test