From 593071d339160b97c145e5ae9ecb5fbee55411a3 Mon Sep 17 00:00:00 2001 From: Benardi Date: Fri, 14 Feb 2020 16:48:51 -0300 Subject: [PATCH] Add github actions test configuration --- .github/workflows/run-tests.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 00000000..501f82be --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,30 @@ +name: Run tests and coverage + +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: | + npm install + sudo npm install -g codecov + - name: Test with npm + run: | + npm run test + - name: Test code coverage + run: | + codecov