forked from e621ng/e621ng
[CI] Try running actions with docker-compose
This commit is contained in:
parent
996f1c30c1
commit
3fc87634eb
4
.github/prepare-docker-image/action.yml
vendored
4
.github/prepare-docker-image/action.yml
vendored
@ -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
|
||||||
|
4
.github/workflows/checks.yml
vendored
4
.github/workflows/checks.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user