diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..27906d2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: Test + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + unit: + runs-on: ubuntu-latest + strategy: + matrix: + version: ['16', '18', '20'] + fail-fast: false + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.version }} + cache: npm + - run: npm install + - run: npm test