|
| 1 | +name: Browsers - local |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + |
| 6 | +env: |
| 7 | + NODE_VERSION: 20.x |
| 8 | + |
| 9 | +jobs: |
| 10 | + test: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + name: ${{ matrix.MIGRATE_VERSION }} (Chrome/Firefox) |
| 13 | + strategy: |
| 14 | + fail-fast: false |
| 15 | + matrix: |
| 16 | + MIGRATE_VERSION: ["min"] |
| 17 | + include: |
| 18 | + - MIGRATE_VERSION: "esmodules" |
| 19 | + steps: |
| 20 | + - name: Checkout |
| 21 | + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 |
| 22 | + |
| 23 | + - name: Use Node.js ${{ env.NODE_VERSION }} |
| 24 | + uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 |
| 25 | + with: |
| 26 | + node-version: ${{ env.NODE_VERSION }} |
| 27 | + |
| 28 | + - name: Cache |
| 29 | + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 |
| 30 | + with: |
| 31 | + path: ~/.npm |
| 32 | + key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }} |
| 33 | + restore-keys: | |
| 34 | + ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock- |
| 35 | +
|
| 36 | + - name: Install dependencies |
| 37 | + run: npm install |
| 38 | + |
| 39 | + - name: Run tests |
| 40 | + run: | |
| 41 | + npm run test:browser -- \ |
| 42 | + --jquery-migrate ${{ matrix.MIGRATE_VERSION }} \ |
| 43 | + --jquery git --jquery git.min --jquery git.slim --jquery git.slim.min \ |
| 44 | + --jquery 3.x-git --jquery 3.x-git.min --jquery 3.x-git.slim --jquery 3.x-git.slim.min \ |
| 45 | + --jquery 3.7.1 --jquery 3.7.1.slim \ |
| 46 | + --jquery 3.6.4 --jquery 3.5.1 --jquery 3.4.1 \ |
| 47 | + --jquery 3.3.1 --jquery 3.2.1 --jquery 3.1.1 --jquery 3.0.0 \ |
| 48 | + --retries 3 --hard-retries 1 |
| 49 | +
|
| 50 | + ie: |
| 51 | + runs-on: windows-latest |
| 52 | + name: ${{ matrix.MIGRATE_VERSION }} (Edge in IE mode) |
| 53 | + shell: cmd |
| 54 | + strategy: |
| 55 | + fail-fast: false |
| 56 | + matrix: |
| 57 | + MIGRATE_VERSION: [ "min" ] |
| 58 | + steps: |
| 59 | + - name: Checkout |
| 60 | + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 |
| 61 | + |
| 62 | + - name: Use Node.js ${{ env.NODE_VERSION }} |
| 63 | + uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 |
| 64 | + with: |
| 65 | + node-version: ${{ env.NODE_VERSION }} |
| 66 | + |
| 67 | + - name: Cache |
| 68 | + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 |
| 69 | + with: |
| 70 | + path: ~/.npm |
| 71 | + key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }} |
| 72 | + restore-keys: | |
| 73 | + ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock- |
| 74 | +
|
| 75 | + - name: Install dependencies |
| 76 | + run: npm install |
| 77 | + |
| 78 | + - name: Run tests |
| 79 | + run: | |
| 80 | + npm run test:ie -- ^ |
| 81 | + --jquery-migrate ${{ matrix.MIGRATE_VERSION }} ^ |
| 82 | + --jquery git --jquery git.min --jquery git.slim --jquery git.slim.min ^ |
| 83 | + --jquery 3.x-git --jquery 3.x-git.min --jquery 3.x-git.slim --jquery 3.x-git.slim.min ^ |
| 84 | + --jquery 3.7.1 --jquery 3.7.1.slim ^ |
| 85 | + --jquery 3.6.4 --jquery 3.5.1 --jquery 3.4.1 ^ |
| 86 | + --jquery 3.3.1 --jquery 3.2.1 --jquery 3.1.1 --jquery 3.0.0 ^ |
| 87 | + --retries 3 --hard-retries 1 |
| 88 | +
|
| 89 | + safari: |
| 90 | + runs-on: macos-latest |
| 91 | + name: ${{ matrix.MIGRATE_VERSION }} (Safari) |
| 92 | + strategy: |
| 93 | + fail-fast: false |
| 94 | + matrix: |
| 95 | + MIGRATE_VERSION: ["min"] |
| 96 | + steps: |
| 97 | + - name: Checkout |
| 98 | + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 |
| 99 | + |
| 100 | + - name: Use Node.js ${{ env.NODE_VERSION }} |
| 101 | + uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 |
| 102 | + with: |
| 103 | + node-version: ${{ env.NODE_VERSION }} |
| 104 | + |
| 105 | + - name: Cache |
| 106 | + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 |
| 107 | + with: |
| 108 | + path: ~/.npm |
| 109 | + key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }} |
| 110 | + restore-keys: | |
| 111 | + ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock- |
| 112 | +
|
| 113 | + - name: Install dependencies |
| 114 | + run: npm install |
| 115 | + |
| 116 | + - name: Run tests |
| 117 | + run: | |
| 118 | + npm run test:safari -- \ |
| 119 | + --jquery-migrate ${{ matrix.MIGRATE_VERSION }} \ |
| 120 | + --jquery git --jquery git.min --jquery git.slim --jquery git.slim.min \ |
| 121 | + --jquery 3.x-git --jquery 3.x-git.min --jquery 3.x-git.slim --jquery 3.x-git.slim.min \ |
| 122 | + --jquery 3.7.1 --jquery 3.7.1.slim \ |
| 123 | + --jquery 3.6.4 --jquery 3.5.1 --jquery 3.4.1 \ |
| 124 | + --jquery 3.3.1 --jquery 3.2.1 --jquery 3.1.1 --jquery 3.0.0 \ |
| 125 | + --retries 3 --hard-retries 1 |
0 commit comments