From fd8358ce43903c99a9ee3cb35035d04b47096c9e Mon Sep 17 00:00:00 2001 From: hasan genc Date: Tue, 14 Sep 2021 12:10:26 +0300 Subject: [PATCH] Add workflow for pr checks. --- .github/workflows/prchecks.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/prchecks.yml diff --git a/.github/workflows/prchecks.yml b/.github/workflows/prchecks.yml new file mode 100644 index 0000000..881eb35 --- /dev/null +++ b/.github/workflows/prchecks.yml @@ -0,0 +1,31 @@ +name: Run tests + +on: + push: + pull_request: + branches: + - master +jobs: + test: + 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: Test + run: npm run test + - uses: codecov/codecov-action@v2 + with: + files: coverage/*.json + flags: unittests + name: react-carousel-codecov + fail_ci_if_error: true + verbose: true + - name: Build + run: npm run build \ No newline at end of file