Skip to content

Commit

Permalink
Maintenance: Fix Github Action CI workflow by adding redis service co…
Browse files Browse the repository at this point in the history
…ntainer.
  • Loading branch information
mgruner committed Mar 27, 2023
1 parent f208e03 commit 2615853
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: CI

on:
pull_request
pull_request:
schedule:
# Run every on Friday to ensure everything works as expected.
- cron: '0 6 * * 5'

jobs:
CI:
Expand All @@ -14,9 +17,13 @@ jobs:
env:
POSTGRES_USER: zammad
POSTGRES_PASSWORD: zammad
redis:
# Use Redis 5 which is shipped in Debian 10.
image: redis:5
env:
RAILS_ENV: test
Z_LOCALES: "en-us:de-de"
REDIS_URL: redis://redis:6379
# Temporary switch to enable the mobile front end for testing.
ENABLE_EXPERIMENTAL_MOBILE_FRONTEND: 'true'
# Compile assets only once.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ bundle install -j "$(nproc)"
yarn install
yarn cypress:install
bundle exec ruby .gitlab/configure_environment.rb
bundle exec rake zammad:db:init

0 comments on commit 2615853

Please sign in to comment.