diff --git a/.github/workflows/prchecks.yml b/.github/workflows/prchecks.yml index 881eb35..5d1202d 100644 --- a/.github/workflows/prchecks.yml +++ b/.github/workflows/prchecks.yml @@ -1,10 +1,11 @@ -name: Run tests +name: PR Checks -on: +on: push: - pull_request: branches: - master + pull_request: + jobs: test: runs-on: ubuntu-latest @@ -27,5 +28,31 @@ jobs: name: react-carousel-codecov fail_ci_if_error: true verbose: true + lint: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/setup-node@v2 + with: + node-version: '12.x' + registry-url: 'https://registry.npmjs.org' + - name: Install + run: npm install + - name: Lint + run: npm run lint + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/setup-node@v2 + with: + node-version: '12.x' + registry-url: 'https://registry.npmjs.org' + - name: Install + run: npm install - name: Build run: npm run build \ No newline at end of file