Skip to content

Commit

Permalink
GHA: Run tests with user=root
Browse files Browse the repository at this point in the history
  • Loading branch information
danschmidt5189 committed Dec 3, 2024
1 parent 0c0b9cf commit 8b5454f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ jobs:
setup:
runs-on: ubuntu-latest

container:
image: alpine:latest
options: --user=root

steps:
# See https://github.com/docker/build-push-action/blob/v2.10.0/TROUBLESHOOTING.md#repository-name-must-be-lowercase
- name: Sanitize image name
Expand Down Expand Up @@ -81,7 +77,7 @@ jobs:
runs-on: ubuntu-latest

container:
# options: --init
options: --user=root
image: ${{ needs.build.outputs.build_image }}

defaults:
Expand All @@ -103,7 +99,7 @@ jobs:

- name: Run style checks
run: bundle exec rubocop

- name: Validate database migrations
env:
RAILS_ENV: test
Expand All @@ -118,7 +114,7 @@ jobs:
path: |
/opt/app/artifacts/**
/tmp/solr*/server/logs
# TODO: DRY w/release.yml
push:
Expand Down

0 comments on commit 8b5454f

Please sign in to comment.