From 6c5d80c0ab3a21b770500a71cde80e3d5420d51e Mon Sep 17 00:00:00 2001 From: jmacura Date: Mon, 5 Feb 2024 14:44:20 +0100 Subject: [PATCH] build(ci): Add new workflow for hslayers-server Ignore hslayers-server changes with original workflow --- .../{nodejs.yml => build+test_libs_apps.yml} | 7 +++-- .github/workflows/build+test_server.yml | 28 +++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) rename .github/workflows/{nodejs.yml => build+test_libs_apps.yml} (81%) create mode 100644 .github/workflows/build+test_server.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/build+test_libs_apps.yml similarity index 81% rename from .github/workflows/nodejs.yml rename to .github/workflows/build+test_libs_apps.yml index 51fda34643..2b84eb3e5b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/build+test_libs_apps.yml @@ -1,6 +1,9 @@ -name: Node CI +name: Build & test hslayers, app & sensors -on: [push] +on: + push: + paths-ignore: + - 'projects/hslayers-server/**/*' jobs: build: diff --git a/.github/workflows/build+test_server.yml b/.github/workflows/build+test_server.yml new file mode 100644 index 0000000000..b3b37eeb51 --- /dev/null +++ b/.github/workflows/build+test_server.yml @@ -0,0 +1,28 @@ +name: Build & test hslayers-server + +on: + push: + paths: + - 'projects/hslayers-server/**/*' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x, 20.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Change working directory + run: cd ./projects/hslayers-server/ + - name: Install dependencies + run: npm ci --force + - name: Test + run: npm test + env: + CI: true