Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jho406 committed Apr 13, 2024
1 parent c1d2b77 commit bdcdf2d
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build_js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test superglue_js
on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
name: Test superglue.js
strategy:
fail-fast: false

runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup project
working-directory: ./superglue
run: npm install
- name: Lint
working-directory: ./superglue
run: npm run lint
- name: Test
working-directory: ./superglue
run: npm run test
38 changes: 38 additions & 0 deletions .github/workflows/build_rails.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test superglue_rails
on:
push:
pull_request:
schedule:
- cron: '* * * * 1'
workflow_dispatch:

jobs:
build:
name: Ruby ${{ matrix.ruby }}. Rails ${{ matrix.version }}
strategy:
fail-fast: false
matrix:
ruby: ['3.3', '3.2', '3.1']
version: ['70', '71', 'main']

runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Setup project
working-directory: ./superglue_rails
run: |
mv Gemfile.${{ matrix.version }} Gemfile
bundle install
bundle update
- name: Run unit test
run: bundle exec rake test
- name: Run acceptance test
run: BUNDLE_GEMFILE='' ruby -Ilib:test test/acceptance/superglue_installation_acceptance.rb

File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions superglue_rails/Gemfile.main
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'https://rubygems.org'
gemspec

gem 'rails', git: 'https://github.com/rails/rails', ref: 'main'
gem 'props_template'
gem 'standard'

0 comments on commit bdcdf2d

Please sign in to comment.