From 97c8961d8ccdc6e6b543e91940b001311ce5f2da Mon Sep 17 00:00:00 2001 From: BuzzLeclair Date: Fri, 7 Mar 2025 20:46:54 +0100 Subject: [PATCH] Ajout de la ci --- gitea/workflows/ci.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 gitea/workflows/ci.yaml diff --git a/gitea/workflows/ci.yaml b/gitea/workflows/ci.yaml new file mode 100644 index 0000000..06232f6 --- /dev/null +++ b/gitea/workflows/ci.yaml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test + + - name: Build project + run: npm run build