diff --git a/.github/workflows/jestci.yml b/.github/workflows/jestci.yml new file mode 100644 index 0000000..cccab8e --- /dev/null +++ b/.github/workflows/jestci.yml @@ -0,0 +1,30 @@ +name: Jest CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + cache-dependency-path: ./yarn.lock + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install dependencies + run: yarn install + + - name: Run Jest tests + run: yarn test