Bump css-loader from 6.10.0 to 7.1.2 #1506
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Run Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: write-all | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
node-version: [18.16.0] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- name: Setup Chrome | |
uses: browser-actions/[email protected] | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build components | |
run: npm run build:dev | |
- name: Run tests | |
run: npm test -- --browsers Chrome | |
- name: Run cli tests | |
run: cd tools/cli && npm i && npm run test | |
dependabot: | |
needs: build | |
runs-on: windows-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/fetch-metadata@v1 | |
with: | |
GITHUB_TOKEN: "${{secrets.DEPENDABOT}}" | |
- name: Add 'dependencies' label | |
run: gh pr edit "$PR_URL" --add-label "dependencies" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.DEPENDABOT}} | |
- name: Approve a PR | |
if: ${{ needs.build.result == 'success' && steps.metadata.outputs.update-type != 'version-update:semver-major' }} | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.DEPENDABOT}} | |
- name: Comment on major updates | |
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-major' }} | |
run: | | |
gh pr comment $PR_URL --body "I'm **not approving** this PR because **it includes a major update of a dependency**" | |
gh pr edit $PR_URL --add-label "requires-manual-qa" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.DEPENDABOT}} | |
- name: Merge a PR | |
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }} | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.DEPENDABOT}} |