Update vite to version 2.9.18 #1947
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: Admin pipeline | |
on: | |
push: | |
paths: | |
- "packages/admin/**" | |
- "packages/shared/**" | |
- "packages/ui/**" | |
env: | |
CI: true | |
REACT_APP_APP_URL: http://localhost:3000/ | |
REACT_APP_READER_PATH: http://localhost:8000/ | |
REACT_APP_APP_PATH: / | |
REACT_APP_APP_TITLE: Reader Front | |
REACT_APP_GA_ID: UA-XXXXXXXXX-X | |
REACT_APP_CDNS: photon | |
REACT_APP_LANGUAGES: en,es | |
jobs: | |
run: | |
name: Node 14 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: node --version | |
- run: yarn --version | |
- name: Install npm dependencies | |
run: yarn install | |
- run: yarn build:shared | |
- run: yarn build:ui | |
- name: Run lint | |
run: yarn lint:admin | |
- name: Run build | |
run: yarn build:admin | |
- name: Run tests | |
run: yarn test:admin -- --maxWorkers=2 |