From f33d1f51982f01411761c8e224ad4ed14652a66d Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Fri, 22 Sep 2023 21:59:53 +0200 Subject: [PATCH] Add a workflow file to run a CI --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..97cef07 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: CI +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + run-ci: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + check-latest: true + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run 'lint' task + run: npm run lint + + - name: Run 'test' task + run: npm run test