Skip to content

Commit 44c956c

Browse files
committed
Add CI
1 parent df87781 commit 44c956c

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Build and Test
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
push:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: "17 4 * * 1"
12+
13+
jobs:
14+
build-and-test:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v6
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v6
23+
with:
24+
node-version: 20
25+
26+
- name: Configure npm registry
27+
run: |
28+
npm config set @universal-robots:registry https://pkgs.dev.azure.com/polyscopex/api/_packaging/polyscopex/npm/registry/
29+
npm config set strict-ssl false
30+
- name: Install dependencies
31+
run: npm install
32+
33+
- name: Build project
34+
run: npm run build
35+
36+
- name: Upload artifacts
37+
uses: actions/upload-artifact@v5
38+
with:
39+
name: tool-comm-forwarder-urcapx
40+
path: target/tool-comm-forwarder-*.urcapx
41+
if-no-files-found: error

0 commit comments

Comments
 (0)