diff --git a/.github/workflows/test-jest.yml b/.github/workflows/test-jest.yml new file mode 100644 index 0000000..d85e341 --- /dev/null +++ b/.github/workflows/test-jest.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + jest-version: [25.x, 26.x 27.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js 16.x + uses: actions/setup-node@v1 + with: + node-version: 16.x + - run: npm ci + - run: npm install jest@${{ matrix.jest-version }} ts-jest@${{ matrix.jest-version }} @types/jest@${{ matrix.jest-version }} + - run: npm run test:jest