From ec3b68ad28acc4f111f8c404d6c2ee9a54f7a353 Mon Sep 17 00:00:00 2001 From: Christian Klemm Date: Sun, 3 Nov 2019 15:18:37 +0100 Subject: [PATCH] Added build workflow --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..d5683bd0c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x, 12.x] + steps: + - uses: actions/checkout@v1 + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install Yarn + run: npm i yarn --global + + - name: Install Packages + run: yarn install + + - name: Run Build + run: yarn build + + - name: Run Unit Tests + run: | + yarn test --coverage + cat ./coverage/lcov.info | ./node_modules/.bin/coveralls + + - name: Run E2E Tests + run: yarn e2e