Skip to content

Commit 8bbbf3b

Browse files
author
Alan
committed
ci: add workflow for self-hosted runner
1 parent 85d234f commit 8bbbf3b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Self-Hosted CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
# Ajout d'un déclencheur manuel pour faciliter les tests
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-and-test:
13+
# Spécifie d'utiliser votre runner auto-hébergé au lieu des runners GitHub
14+
runs-on: self-hosted
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Log Node.js version
21+
run: node --version
22+
23+
- name: Log available disk space
24+
run: |
25+
echo "Checking available disk space:"
26+
df -h
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Run tests
32+
run: npm test -- --watch=false --browsers=ChromeHeadless --no-progress

0 commit comments

Comments
 (0)