Skip to content

deps(build): fix vulnerabilities #311

deps(build): fix vulnerabilities

deps(build): fix vulnerabilities #311

Workflow file for this run

---
# Documentation:https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Continuous Integration
on:
pull_request:
jobs:
type-check:
name: Verify TypeScript types
runs-on: ubuntu-latest
steps:
- name: Checkout the code base
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js 18x
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
npm ci
rm -rf .npmrc
- name: Run Typescript
run: npm run check
smoke-test:
name: Run Smoke Test (build)
runs-on: ubuntu-latest
steps:
- name: Checkout the code base
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
npm ci
rm -rf .npmrc
- name: Build for Production
run: npm run build
source-test:
name: Run Tests on Source Code
runs-on: ubuntu-latest
steps:
- name: Checkout the code base
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18'
# - name: Install Cypress dependencies
# run: sudo apt update && sudo apt install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
npm ci
rm -rf .npmrc
- name: Run Unit Tests
run: npm run test
# - name: Cypress run
# uses: cypress-io/github-action@v4
# with:
# build: npm run build:root
# start: npm run serve