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