Skip to content

Commit 7df7f61

Browse files
Add self-hosted CI workflow configuration
1 parent 1f96199 commit 7df7f61

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Self-Hosted CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-and-test:
12+
runs-on: self-hosted
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
18+
- name: Log Node.js version
19+
run: node --version
20+
21+
- name: Log available disk space
22+
shell: pwsh
23+
run: |
24+
Write-Output "Checking available disk space:"
25+
Get-PSDrive -PSProvider 'FileSystem' | Select-Object Name, Used, Free
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Run tests
31+
run: npm test -- --watch=false --browsers=ChromeHeadless --no-progress

0 commit comments

Comments
 (0)