Skip to content

Commit

Permalink
ci: run e2e test when a pr is created
Browse files Browse the repository at this point in the history
Signed-off-by: Kenta Kozuka <[email protected]>
  • Loading branch information
kentakozuka committed Feb 8, 2024
1 parent f717c5c commit c5dcca5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ name: e2e

on:
workflow_dispatch:
push:
branches:
- master
workflow_call:
secrets:
E2E_HOST:
required: true
NPM_TOKEN:
required: true

env:
NODE_VERSION: 16
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
e2e:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,13 @@ jobs:
- name: Example Build
working-directory: ${{ env.EXAMPLE_PATH }}
run: make build

e2e:
name: E2E tests
needs: install-dependencies
uses: ./.github/workflows/e2e.yml
secrets:
E2E_HOST: ${{ secrets.E2E_HOST }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}


0 comments on commit c5dcca5

Please sign in to comment.