From 7fff2be2e0fa21cea33854be4a099a4df04f919e Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Sun, 8 Sep 2024 21:54:46 +0200 Subject: [PATCH] test --- .github/workflows/{lint.yml => ci.yml} | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) rename .github/workflows/{lint.yml => ci.yml} (57%) diff --git a/.github/workflows/lint.yml b/.github/workflows/ci.yml similarity index 57% rename from .github/workflows/lint.yml rename to .github/workflows/ci.yml index 918d9e4..7a8c99a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Lint +name: CI on: push: branches: [master] @@ -26,3 +26,22 @@ jobs: npm run lint:prettier env: CI: true + test: + name: Run lint:prettier + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run test + run: | + npm test