Update pdfjs-dist to 3.8.162 #1625
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: | |
push: | |
branches: ['*'] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
name: Static code analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache .yarn/cache | |
uses: actions/cache@v3 | |
env: | |
cache-name: yarn-cache | |
with: | |
path: .yarn/cache | |
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ env.cache-name }} | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn --immutable | |
env: | |
HUSKY: 0 | |
- name: Build package | |
run: yarn build | |
- name: Run tests | |
run: yarn lint | |
typescript: | |
name: Type checking | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache .yarn/cache | |
uses: actions/cache@v3 | |
env: | |
cache-name: yarn-cache | |
with: | |
path: .yarn/cache | |
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ env.cache-name }} | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn --immutable | |
env: | |
HUSKY: 0 | |
- name: Build package | |
run: yarn build | |
- name: Run type checking | |
run: yarn tsc | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache .yarn/cache | |
uses: actions/cache@v3 | |
env: | |
cache-name: yarn-cache | |
with: | |
path: .yarn/cache | |
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ env.cache-name }} | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn --immutable | |
env: | |
HUSKY: 0 | |
- name: Prettier | |
run: yarn prettier | |
unit: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache .yarn/cache | |
uses: actions/cache@v3 | |
env: | |
cache-name: yarn-cache | |
with: | |
path: .yarn/cache | |
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ env.cache-name }} | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn --immutable | |
env: | |
HUSKY: 0 | |
- name: Run tests | |
run: yarn unit |