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