fix(plex): fix dependencia ngx-quill #919
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: build and test | |
on: [push] | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.21.1' | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: | | |
~/.npm | |
~/.cache/Cypress | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- run: npm ci | |
- run: npm run lint | |
- run: | | |
GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-8) | |
echo $GITHUB_SHA_SHORT | |
- run: npm install puppeteer --save-dev | |
- run: npm run test:ci | |
cypress: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14.21.1' | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: | | |
~/.npm | |
~/.cache/Cypress | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- run: npm ci | |
- run: npm run build:test -- --progress=false | |
- run: npm run web-server & | |
- name: Get the current branch name | |
shell: bash | |
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" | |
id: branch | |
- run: npx cypress run --record | |
env: | |
APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_KEY }} | |
APPLITOOLS_CONCURRENCY: 5 | |
APPLITOOLS_PARENT_BRANCH_NAME: master | |
APPLITOOLS_BRANCH_NAME: ${{ steps.branch.outputs.branch }} | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_KEY }} | |
APPLITOOLS_BATCH_ID: ${{ github.run_number }} | |
APPLITOOLS_BATCH_NAME: ${{ steps.branch.outputs.branch }} | |
TZ: "America/Argentina/Buenos_Aires" | |