-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Test Building Code | ||
# Controls when the workflow will run | ||
on: [push, pull_request, workflow_dispatch] | ||
# The sequence of runs in this workflow: | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Check out Repository Code | ||
uses: actions/checkout@v3 | ||
- name: Cache Streaming Dependencies | ||
uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
packages: libunwind-dev libudev-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev gstreamer1.0-plugins-good gstreamer1.0-plugins-bad | ||
version: 1.1 | ||
- name: Set Up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Cache Node Dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
ui/node_modules | ||
ui/client/node_modules | ||
key: ${{ runner.os }}-node-${{ hashFiles('ui/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install Node Dependencies | ||
run: | | ||
cd ui | ||
npm install | ||
npm ci | ||
cd client | ||
npm install | ||
cd .. | ||
- name: Build Repository Code | ||
run: | | ||
cd ui | ||
npm run build |