From 0f35898d2b00147c4ef82f2ada6369fc1e75590e Mon Sep 17 00:00:00 2001 From: segayuu Date: Mon, 9 Mar 2020 22:12:51 +0900 Subject: [PATCH] feat(github actions): Create tester job --- .github/workflows/tester.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tester.yml diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml new file mode 100644 index 0000000000..45f15e6afd --- /dev/null +++ b/.github/workflows/tester.yml @@ -0,0 +1,30 @@ +name: Tester + +on: [push, pull_request] + +jobs: + tester: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node-version: ['10.x', '12.x', '13.x'] + fail-fast: false + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Cache NPM dependencies + uses: actions/cache@v1 + with: + path: node_modules + key: ${{ runner.OS }}-npm-cache + restore-keys: ${{ runner.OS }}-npm-cache + - name: Install Dependencies + run: npm install + - name: Test + run: npm test + env: + CI: true