Fix ActionView backtrace filtering on Ruby 3.4+ #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Devcontainer smoke test | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Devcontainer smoke test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Ruby 3.3 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
bundler-cache: true | |
- name: Generate rails app sqlite3 | |
run: bundle exec railties/exe/rails new myapp_sqlite --database="sqlite3" --dev | |
- name: Test devcontainer sqlite3 | |
uses: devcontainers/ci@v0.3 | |
with: | |
subFolder: myapp_sqlite | |
imageName: ghcr.io/rails/smoke-test-devcontainer | |
cacheFrom: ghcr.io/rails/smoke-test-devcontainer | |
imageTag: sqlite3 | |
push: ${{ github.repository_owner == 'rails' && 'filter' || 'never' }} | |
refFilterForPush: refs/heads/main | |
runCmd: bin/rails g scaffold Post && bin/rails db:migrate && bin/rails test | |
- name: Stop all containers | |
run: docker ps -q | xargs docker stop | |
- name: Generate rails app postgresql | |
run: bundle exec railties/exe/rails new myapp_postgresql --database="postgresql" --dev | |
- name: Test devcontainer postgresql | |
uses: devcontainers/ci@v0.3 | |
with: | |
subFolder: myapp_postgresql | |
imageName: ghcr.io/rails/smoke-test-devcontainer | |
cacheFrom: ghcr.io/rails/smoke-test-devcontainer | |
imageTag: postgresql | |
push: ${{ github.repository_owner == 'rails' && 'filter' || 'never' }} | |
refFilterForPush: refs/heads/main | |
runCmd: bin/rails g scaffold Post && bin/rails db:migrate && bin/rails test | |
- name: Stop all containers | |
run: docker ps -q | xargs docker stop | |
- name: Generate rails app mysql | |
run: bundle exec railties/exe/rails new myapp_mysql --database="mysql" --dev | |
- name: Test devcontainer mysql | |
uses: devcontainers/ci@v0.3 | |
with: | |
subFolder: myapp_mysql | |
imageName: ghcr.io/rails/smoke-test-devcontainer | |
cacheFrom: ghcr.io/rails/smoke-test-devcontainer | |
imageTag: mysql | |
push: ${{ github.repository_owner == 'rails' && 'filter' || 'never' }} | |
refFilterForPush: refs/heads/main | |
runCmd: bin/rails g scaffold Post && bin/rails db:migrate && bin/rails test | |
- name: Stop all containers | |
run: docker ps -q | xargs docker stop | |
- name: Generate rails app trilogy | |
run: bundle exec railties/exe/rails new myapp_trilogy --database="trilogy" --dev | |
- name: Test devcontainer trilogy | |
uses: devcontainers/ci@v0.3 | |
with: | |
subFolder: myapp_trilogy | |
imageName: ghcr.io/rails/smoke-test-devcontainer | |
cacheFrom: ghcr.io/rails/smoke-test-devcontainer | |
imageTag: trilogy | |
push: ${{ github.repository_owner == 'rails' && 'filter' || 'never' }} | |
refFilterForPush: refs/heads/main | |
runCmd: bin/rails g scaffold Post && bin/rails db:migrate && bin/rails test | |
- name: Stop all containers | |
run: docker ps -q | xargs docker stop |