From dadf24a256dc1ddad699f99636c1e10cd681ac53 Mon Sep 17 00:00:00 2001 From: "Sebastian L. K. Sorensen" Date: Fri, 17 May 2024 12:42:02 +0200 Subject: [PATCH] add .github/workflows/ci.yml --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..8c8566d9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Run build + run: npm run build + + - name: Run tests + run: npm run test