From 3ce6d6e2b25d631b255fc037159a240cf198b29b Mon Sep 17 00:00:00 2001 From: hasan genc Date: Tue, 14 Sep 2021 12:29:47 +0300 Subject: [PATCH] Update pr checks. --- .github/workflows/prchecks.yml | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) 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