Skip to content

Commit

Permalink
add gh-action for running e2e tests with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Oct 16, 2024
1 parent de6f32a commit ae1e106
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/e2e-docker-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run E2E Docker Tests

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
e2e-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository 📝
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build contracts
run: yarn build

- name: Run docker infra
run: yarn run docker

- name: Run E2E Tests
run: yarn test
4 changes: 0 additions & 4 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ on:
- main
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
e2e-tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ae1e106

Please sign in to comment.