diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml new file mode 100644 index 0000000..2d7c27d --- /dev/null +++ b/.github/workflows/lint_and_test.yml @@ -0,0 +1,30 @@ +name: Reboot.dev Node.js Template + +on: [push] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Lint sources + uses: actions/setup-node@v4 + with: + node-version: '18.x' + cache: 'npm' + - run: npm ci + - run: npm run lint + + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run all tests + uses: actions/setup-node@v4 + with: + node-version: '18.x' + cache: 'npm' + - run: npm ci + - run: npm run test