diff --git a/.github/workflows/pull_request_test_and_lint.yml b/.github/workflows/pull_request_test_and_lint.yml new file mode 100644 index 00000000..1f0772b6 --- /dev/null +++ b/.github/workflows/pull_request_test_and_lint.yml @@ -0,0 +1,25 @@ +name: Pull Request Test and Lint + +on: + pull_request: + branches: + - main + +jobs: + test_and_lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v3 + with: + node-version-file: .node-version + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - run: npm run lint + + - run: npm run test