Prepare for release, remove default hardware acceleration in example #71
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: | |
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 |