Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flakey5 committed Sep 15, 2023
1 parent 59bfc05 commit b0ac65a
Show file tree
Hide file tree
Showing 37 changed files with 1,068 additions and 22 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Tests

on:
pull_request_target:
branches:
- main

jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest

steps:
- name: Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

- name: Cache Dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: |
~/.npm
node_modules/.cache
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/format.yml') }}
restore-keys: ${{ runner.os }}-npm-

- name: Install dependencies
run: npm install

- name: Run Tests
run: npm run test:unit
e2e-test:
name: E2E Tests
runs-on: ubuntu-latest

steps:
- name: Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

- name: Cache Dependencies
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: |
~/.npm
node_modules/.cache
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/format.yml') }}
restore-keys: ${{ runner.os }}-npm-

- name: Install dependencies
run: npm install

- name: Run Tests
run: npm run test:e2e
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/
.wrangler/
dist/
dist/
Loading

0 comments on commit b0ac65a

Please sign in to comment.