From df46145b25c8925a73386d7f7d0592511c5ca1a4 Mon Sep 17 00:00:00 2001 From: Boris Rogachov Date: Wed, 3 Jul 2024 21:48:49 +0300 Subject: [PATCH] Add github workflows --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ .istanbul.yml | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 .istanbul.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..998f7fc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Tests +on: [ push, pull_request ] + +env: + COVERALLS_SERVICE_NUMBER: ${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }} + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: lts/* + cache: yarn + - run: yarn install + - run: yarn run coveralls + - name: Coveralls + id: coveralls + uses: coverallsapp/github-action@v2 + diff --git a/.istanbul.yml b/.istanbul.yml new file mode 100644 index 0000000..e761138 --- /dev/null +++ b/.istanbul.yml @@ -0,0 +1,4 @@ +instrumentation: + root: ./src + include-all-sources: true +