mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
e853971b0a
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) Closes gh-2098 --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
name: Grunt tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
grunt:
|
|
name: Grunt based tests with Node.js ${{ matrix.node-version }}
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x, 14.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Get npm cache directory
|
|
id: npm-cache-dir
|
|
run: |
|
|
echo "::set-output name=dir::$(npm config get cache)"
|
|
|
|
- name: Cache npm dependencies
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ${{ steps.npm-cache-dir.outputs.dir }}
|
|
key: ${{ runner.os }}-node-${{ matrix.node-version }}-npm-${{ hashFiles('**/package.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-${{ matrix.node-version }}-npm-
|
|
${{ runner.os }}-node-${{ matrix.node-version }}-
|
|
${{ runner.os }}-node-
|
|
${{ runner.os }}-
|
|
|
|
- name: Install npm dependencies
|
|
run: npm install
|
|
|
|
# Keep these steps in sync with the default command tasks in our Gruntfile!
|
|
- name: Run lint
|
|
run: node_modules/.bin/grunt lint
|
|
|
|
- name: Run RequireJS
|
|
run: node_modules/.bin/grunt requirejs
|
|
|
|
- name: Run Qunit
|
|
run: node_modules/.bin/grunt test
|
|
|
|
valid:
|
|
name: Build & tests
|
|
|
|
needs: grunt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Grunt based tests passed
|
|
run: echo "✅"
|