Skip to content

Merge pull request #80 from miminashi/79-add-deploy-script #48

Merge pull request #80 from miminashi/79-add-deploy-script

Merge pull request #80 from miminashi/79-add-deploy-script #48

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: PreCompile assets
run: ./docker_compose --profile test run --rm --build test rails assets:precompile
- name: Create database
run: ./docker_compose --profile test run --rm --build test rails db:create
- name: Run tests on docker compose
run: ./docker_compose --profile test run --rm --build test rails test:system
- name: Upload Logs
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: log
path: log/test.log