Skip to content

Release/v0.6.0

Release/v0.6.0 #230

Workflow file for this run

name: test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Start containers
run: docker compose -f compose.ci.yml up -d
- name: Install dependencies
run: |
docker compose -f compose.ci.yml exec app bundle install --jobs=16
docker compose -f compose.ci.yml exec app bundle clean --force
- name: Setup database
run: |
docker compose -f compose.ci.yml exec app sh -c "cd ./spec/dummy && bundle exec rails db:setup"
- name: Run tests
run: docker compose -f compose.ci.yml exec app bundle exec rspec
- name: Stop containers
run: docker compose -f compose.ci.yml down