Update dependency @types/puppeteer to v5.4.7 #1865
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: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Test | |
env: | |
CI: true | |
TERM: xterm-256color | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
node: [14.x, 12.x, 10.x] | |
exclude: | |
# On Windows, run tests with only the latest environments. | |
- os: windows-latest | |
node: 10.x | |
- os: windows-latest | |
node: 14.x | |
# On macOS, run tests with only the latest environments. | |
- os: macOS-latest | |
node: 10.x | |
- os: macOS-latest | |
node: 14.x | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-node@v2-beta | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v2 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: yarn install --frozen-lockfile --ignore-optional --non-interactive --silent --network-timeout 600000 | |
- run: node --expose-gc node_modules/jest/bin/jest --bail --colors --logHeapUsage --maxWorkers=2 --ci | |
- uses: codecov/codecov-action@v2 | |
with: | |
file: ./coverage/coverage-final.json | |
# - name: Save ESLint results as JSON for sonar | |
# run: yarn lint --format json -o reports/eslint-results.json | |
# if: matrix.os == 'ubuntu-latest' && matrix.node == '12.x' | |
# - name: SonarCloud Scan | |
# run: | | |
# curl --create-dirs -sSLo .sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip | |
# unzip -o .sonar/sonar-scanner.zip -d .sonar/ | |
# .sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux/bin/sonar-scanner \ | |
# -Dsonar.login=${{ secrets.SONAR_LOGIN }} | |
# if: matrix.os == 'ubuntu-latest' && matrix.node == '12.x' | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
# SONAR_SCANNER_VERSION: '4.2.0.1873' | |
# # https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner | |
# SONAR_SCANNER_OPTS: -Xmx1024m |