[CI] Try running actions with docker-compose

This commit is contained in:
Earlopain 2023-02-25 13:18:35 +01:00
parent 996f1c30c1
commit 3fc87634eb
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
2 changed files with 4 additions and 4 deletions

View File

@ -12,8 +12,8 @@ runs:
with: with:
cache-from: type=gha cache-from: type=gha
load: true load: true
tags: e621:test tags: e621
- name: Set docker run command - name: Set docker run command
run: echo "DOCKER_RUN=docker run --rm --network host -e POSTGRES_HOST=localhost -e RAILS_ENV=test -e CI=true -v $PWD:/app e621:test" >> "$GITHUB_ENV" run: echo "DOCKER_RUN=docker-compose run -e CI=true" >> "$GITHUB_ENV"
shell: bash shell: bash

View File

@ -24,7 +24,7 @@ jobs:
with: with:
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
tags: e621:test tags: e621
rubocop: rubocop:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -35,4 +35,4 @@ jobs:
- uses: ./.github/prepare-docker-image - uses: ./.github/prepare-docker-image
- name: Run Rubocop - name: Run Rubocop
run: $DOCKER_RUN bundle exec rubocop --format github run: $DOCKER_RUN rubocop --format github