#10 Removing makefile
The makefile for the client is not as useful as a install script - Updated test action to install client deps. - Added new action to specifically test the install script for client
This commit is contained in:
26
.gitea/workflows/DRBv3-Client_Setup_tests.yaml
Normal file
26
.gitea/workflows/DRBv3-Client_Setup_tests.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: DRB Build Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
test_setup:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Test setup script
|
||||
run: |
|
||||
# Run the setup script with sudo
|
||||
sudo bash setup_script.sh
|
||||
@@ -38,10 +38,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
@@ -61,11 +61,9 @@ jobs:
|
||||
working-directory: "./client"
|
||||
run: rm package-lock.json
|
||||
|
||||
- name: Run setup process
|
||||
- name: Install dependencies (Client)
|
||||
working-directory: "./client"
|
||||
run: |
|
||||
useradd -m -s /bin/bash pi
|
||||
make
|
||||
run: npm install
|
||||
|
||||
- run: echo "Node has finished installing dependencies"
|
||||
|
||||
Reference in New Issue
Block a user