test: add test workflows for all 3 jquery projects #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: jQuery | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write # to update code (git submodule) | |
env: | |
NODE_VERSION: 22.x | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
name: Test jQuery Integration | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Use Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Cache | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock- | |
- name: Install dependencies | |
run: npm install | |
- name: Install jQuery submodule | |
run: git submodule update --init -- test/jquery | |
- name: Run jQuery tests | |
working-directory: test/jquery | |
run: npm it |