From a7c1fb7aa975ab92a33834a487fadc6f2ab898f6 Mon Sep 17 00:00:00 2001 From: Mudzz Date: Mon, 3 Mar 2025 14:29:08 +0100 Subject: [PATCH] ci: add workflow for self-hosted runner --- .github/workflows/self-hosted-ci.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/self-hosted-ci.yml diff --git a/.github/workflows/self-hosted-ci.yml b/.github/workflows/self-hosted-ci.yml new file mode 100644 index 000000000..404a2f4a4 --- /dev/null +++ b/.github/workflows/self-hosted-ci.yml @@ -0,0 +1,32 @@ +name: Self-Hosted CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + # Ajout d'un déclencheur manuel pour faciliter les tests + workflow_dispatch: + +jobs: + build-and-test: + # Spécifie d'utiliser votre runner auto-hébergé au lieu des runners GitHub + runs-on: self-hosted + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Log Node.js version + run: node --version + + - name: Log available disk space + run: | + echo "Checking available disk space:" + df -h + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test -- --watch=false --browsers=ChromeHeadless --no-progress