Skip to content

Commit

Permalink
Temp Software CI (#1076)
Browse files Browse the repository at this point in the history
### Summary
- Add CI to build tracksight frontend
- Ignore software changes for other CI workflows.

### Changelist 
<!-- Give a list of the changes covered in this PR. This will help both
you and the reviewer keep this PR within scope. -->

### Testing Done
<!-- Outline the testing that was done to demonstrate the changes are
solid. This could be unit tests, integration tests, testing on the car,
etc. Include relevant code snippets, screenshots, etc as needed. -->

### Resolved Issues
<!-- Link any issues that this PR resolved like so: `Resolves #1, #2,
and #5` (Note: Using this format, Github will automatically close the
issue(s) when this PR is merged in). -->

### Checklist
*Please change `[ ]` to `[x]` when you are ready.*
- [ ] I have read and followed the code conventions detailed in
[README.md](../README.md) (*This will save time for both you and the
reviewer!*).
- [ ] If this pull request is longer then **500** lines, I have provided
*explicit* justification in the summary above explaining why I *cannot*
break this up into multiple pull requests (*Small PR's are faster and
less painful for everyone involved!*).
  • Loading branch information
jpatch22 authored Nov 8, 2023
1 parent 8b34663 commit 8b0b41b
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: UBC Formula Electric CI
on:
pull_request:
paths-ignore:
- 'software/**'

jobs:
clang-format:
Expand Down Expand Up @@ -199,4 +201,4 @@ jobs:
- name: Run tests
run: |
cd $BUILD_DIR/scripts/code_generation/fakegen
cd $BUILD_DIR/scripts/code_generation/fakegen
2 changes: 2 additions & 0 deletions .github/workflows/dbc-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: DBC Release
on:
pull_request:
paths-ignore:
- 'software/**'
branches:
- master

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/master_cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Binary and DBC Generation
on:
push:
paths-ignore:
- 'software/**'
branches:
- master

Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/tracksight-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tracksight Frontend CI
run-name: Tracksight Frontend CI 🚀
on:
push:
paths:
- "software/tracksight/frontend/**"
jobs:
build:
runs-on: ubuntu-latest

steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- name: List files in the repository
run: |
ls
- name: Setup up node JS
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Dependancies
run: |
cd software/tracksight/frontend
npm install
- name: Build project
run: |
cd software/tracksight/frontend
npm run build
- name: Cache node_modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

0 comments on commit 8b0b41b

Please sign in to comment.