Skip to content

Offload all dongle data procesing from the main thread #65

Offload all dongle data procesing from the main thread

Offload all dongle data procesing from the main thread #65

Workflow file for this run

name: build_and_test
on:
push:
branches:
- main
- master # TODO: Remove this in favor of main eventually?
- next
pull_request:
jobs:
build_and_test:
runs-on: ubuntu-latest
container:
image: node:18 # Tracking current LTS
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache Node packages
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Packager Version
run: npm version
- name: Install Dependencies
run: (npm install) && (cd examples/carplay-web-app && npm install)
- name: Typecheck sources
run: npm run typecheck
- name: Lint sources
run: npm run lint
- name: Run Tests
run: npm run test
- name: Build example
run: (cd examples/carplay-web-app && npm run build)
- name: Zip up the built example
run: (cd examples/carplay-web-app/build && tar -cvzf ../../../carplay-web-app.tar.gz *)
- name: Upload built example
uses: actions/upload-artifact@v3
with:
name: carplay-web-app.tar.gz
path: carplay-web-app.tar.gz
retention-days: 30