From f805c8c738211d19380dcd2ae2c8997a8ed84075 Mon Sep 17 00:00:00 2001 From: Giles Roadnight Date: Fri, 20 May 2022 10:44:49 +0000 Subject: [PATCH] Test with previous jest versions --- .github/workflows/test-jest.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/test-jest.yml 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