diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d0cafa3..5482a1e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,20 +2,31 @@ name: CI on: push: - branches: [main] + branches: + - main pull_request: - branches: [main] + branches: + - main jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 with: node-version: '20' - cache: 'npm' - - run: npm ci - - run: npm run build - - run: npm test - - run: npm run lint + + - name: Install dependencies + run: npm ci + + - name: Run lint + run: npm run lint + + - name: Run tests + run: npm test + + - name: Build + run: npm run build