Skip to content

Commit

Permalink
feat: add a simple dapp e2e test and a testing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianbormann committed Mar 22, 2023
1 parent 732fe10 commit c4efff5
Show file tree
Hide file tree
Showing 8 changed files with 2,326 additions and 3,531 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run Tests
on:
push:
branches-ignore:
- 'main'
pull_request:
branches-ignore:
- 'main'

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v3

- name: 🫡 Setup node
uses: actions/setup-node@v1
with:
node-version: 16

- name: 🧘‍♀️ Download dependencies
run: npm ci

- name: 🎳 Run tests
run: npm test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cypress/

dist/
.DS_Store

Expand Down
9 changes: 9 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
baseUrl: null,
supportFile: false,
specPattern: 'test/e2e/*.cy.js',
},
});
Loading

0 comments on commit c4efff5

Please sign in to comment.