This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
Prepare 7.2.5 (#997) #373
Workflow file for this run
This file contains 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: build | |
on: | |
push: | |
pull_request: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node: ['14', '16'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
id: cache | |
with: | |
path: | | |
node_modules | |
test/mock | |
key: ${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org/ | |
- run: npm install -g npm@^6 | |
- run: npm install -g grunt-cli | |
- if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- run: npm test | |
- run: sudo apt-get install xvfb | |
- run: xvfb-run --auto-servernum npm run test-browsers | |
- run: npm run beautify | |
- if: github.event_name == 'release' && github.event.action == 'published' && matrix.node == '16' | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |