Skip to content

Commit

Permalink
chore: add e2e tests to github workflows
Browse files Browse the repository at this point in the history
Closes: #656
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone committed Jul 29, 2022
1 parent 5af9650 commit 54791f2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/npmtest.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js CI
name: Run CI tests

on:
push:
Expand All @@ -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
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 54791f2

Please sign in to comment.