Skip to content

Commit

Permalink
v2.0.0 (#18)
Browse files Browse the repository at this point in the history
- simplified Turbo integration setup
- support dialog showModal & close out of the box.
- direct invocation with an optional message.
- direct invocation with a contentMap.
- helpful error messages
- playwright browser tests & dummy Rails app

---------

Co-authored-by: Tim Irwin <[email protected]>
Co-authored-by: Justin Wiebe <[email protected]>
  • Loading branch information
3 people authored Apr 2, 2024
1 parent 8a9596d commit ab0611c
Show file tree
Hide file tree
Showing 99 changed files with 5,646 additions and 3,096 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Playwright Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn

- name: Install dependencies
run: yarn

- name: Install Playwright Browsers
run: yarn playwright install --with-deps

- name: Install Ruby and gems for dummy app
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true

- name: Setup dummy app
run: bin/setup
working-directory: ./test/dummy

- name: Run Playwright tests
run: yarn playwright test

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
14 changes: 5 additions & 9 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release package
name: Release Package

on:
release:
Expand All @@ -8,23 +8,19 @@ jobs:
build-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
build-gph:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.x'
registry-url: https://npm.pkg.github.com/
- run: npm publish --access public
env:
Expand Down
37 changes: 36 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
node_modules
/node_modules
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/yarn-error.log

# Ignore bundler config.
/test/dummy/.bundle

# Ignore all logfiles and tempfiles.
/test/dummy/log/*
/test/dummy/tmp/*
!/test/dummy/log/.keep
!/test/dummy/tmp/.keep

# Ignore pidfiles, but keep the directory.
/test/dummy/tmp/pids/*
!/test/dummy/tmp/pids/
!/test/dummy/tmp/pids/.keep

# Ignore uploaded files in development.
/test/dummy/storage/*
!/test/dummy/storage/.keep
/test/dummy/tmp/storage/*
!/test/dummy/tmp/storage/
!/test/dummy/tmp/storage/.keep

/test/dummy/public/assets
# Ignore master key for decrypting credentials and more.
/test/dummy/config/master.key

/test/dummy/app/assets/builds/*
!/test/dummy/app/assets/builds/.keep

/test/dummy/node_modules
13 changes: 9 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
test
jest.config.js
title_image.png
.github
/title_image.png
/test/
/test-results/
/tests-examples/
/playwright-report/
/playwright.config.js
/blob-report/
/.github/
/playwright/.cache/
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 RoleModel Software
Copyright (c) 2024 RoleModel Software

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Loading

0 comments on commit ab0611c

Please sign in to comment.