Skip to content

Moving the Bricks and updating the position and state properly following the rules of Music Blocks #267

Moving the Bricks and updating the position and state properly following the rules of Music Blocks

Moving the Bricks and updating the position and state properly following the rules of Music Blocks #267

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 16.x
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
npm ci
npx lerna bootstrap
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 16.x
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
npm ci
npx lerna bootstrap
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 16.x
uses: actions/setup-node@v3
with:
node-version: '16'
# - 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
npx lerna bootstrap
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