From 2275766736a3766e436100c1c91f595d8bcceb06 Mon Sep 17 00:00:00 2001 From: Raphael Schweizer Date: Thu, 4 Apr 2024 15:41:06 +0200 Subject: [PATCH] 'CI' --- .github/workflows/ci.yml | 15 +++++++++++++++ package.json | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ddc1b54 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,15 @@ +on: + pull_request: + branches: [main] + push: + branches: [main] +jobs: + build: + name: test + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - run: npm ci + - run: npm run test diff --git a/package.json b/package.json index 4e79b91..98f785a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", - "test": "ng test" + "test": "ng test --browsers ChromeHeadless --watch=false" }, "private": true, "dependencies": {