chore(deps): bump braces, userscripter and webpack #116
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: CI | |
on: | |
# CD workflow is responsible for building and release on push to master | |
pull_request_target: | |
types: [labeled] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.labels.*.name, 'safe to test') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Reconfigure git to use HTTP authentication | |
run: > | |
git config --global url."https://github.com/".insteadOf | |
ssh://[email protected] | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Lint | |
run: | | |
npm run lint | |
- name: Coverage | |
# Could be replaced with coverage-all if you want to ensure new files are tested as well | |
run: | | |
npm run coverage | |
npm run coverage:report | |
env: | |
NODE_ENV: test | |
- name: E2E-tests | |
uses: cypress-io/github-action@v2 | |
with: | |
build: npm run build | |
env: | |
NODE_ENV: test | |
- name: Upload coverage to CodeCov | |
uses: codecov/codecov-action@v1 | |
continue-on-error: true | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
directory: coverage |