From 4b9ca0e80198daa33f2bb4c4219cab6d21b84556 Mon Sep 17 00:00:00 2001 From: xWafl <73sampleperson@gmail.com> Date: Mon, 6 Jul 2020 17:58:26 -0400 Subject: [PATCH] feat: test workflow --- .github/workflows/test.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 0000000..350f822 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: Tests + +on: + push: + branches: "*" + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install pnpm + run: npm i -g pnpm + + - name: Config pnpm + run: pnpm config set verify-store-integrity false + + - name: Cache node_modules + uses: actions/cache@v1 + with: + path: ~/.pnpm-store + key: ${{ hashFiles('pnpm-lock.yaml') }} + + - name: Install dependencies + run: pnpm i + + - name: Test with pnpm + run: pnpm run test