From 54791f2da5e572975226ef4d3e20bfd6583aeb19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Migone?= Date: Fri, 29 Jul 2022 12:24:35 +0200 Subject: [PATCH] chore: add e2e tests to github workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #656 Signed-off-by: Tomás Migone --- .github/workflows/{npmtest.yml => ci.yml} | 10 ++++----- .github/workflows/e2e.yml | 25 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 6 deletions(-) rename .github/workflows/{npmtest.yml => ci.yml} (78%) create mode 100644 .github/workflows/e2e.yml diff --git a/.github/workflows/npmtest.yml b/.github/workflows/ci.yml similarity index 78% rename from .github/workflows/npmtest.yml rename to .github/workflows/ci.yml index 08e625e57..c4ed99cf7 100644 --- a/.github/workflows/npmtest.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Node.js CI +name: Run CI tests on: push: @@ -11,18 +11,16 @@ jobs: strategy: matrix: - node-version: [14.x] + node-version: [16.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - name: Install packages run: yarn install --non-interactive --frozen-lockfile - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} - name: Run tests run: yarn test:coverage - name: Upload coverage report diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 000000000..e381e7906 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,25 @@ +name: Run E2E tests + +on: + push: + branches: [dev] + pull_request: {} + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install packages + run: yarn install --non-interactive --frozen-lockfile + - name: Run e2e tests + run: ADDRESS_BOOK=addresses.json yarn test:e2e