Skip to content

Commit

Permalink
Adds more context
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kastl <daniel@georepublic.de>
  • Loading branch information
dkastl committed Jun 7, 2024
1 parent 4558513 commit a4e025c
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/test-postgis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ env:

on:
push:
branches: [main, next]
branches:
- main
- next
pull_request:
branches: [main, next]
branches:
- main
- next
workflow_dispatch:

jobs:
test:
name: redmine:${{ matrix.redmine_version }} ruby:${{ matrix.ruby_version }} postgis:${{ matrix.db_version }}
runs-on: ubuntu-22.04

container:
image: ruby:${{ matrix.ruby_version }}-bullseye

Expand Down Expand Up @@ -44,6 +47,21 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: List repository files for debugging
run: ls -R
shell: bash

- name: Set script permissions
run: chmod +x ./scripts/*.sh
shell: bash

- name: List scripts directory for debugging
run: ls -l ./scripts
shell: bash

- name: Checkout Redmine
uses: actions/checkout@v4
with:
Expand All @@ -58,43 +76,52 @@ jobs:

- name: Setup Environment
run: ./scripts/setup_environment.sh
shell: bash

- name: Prepare Plugin
working-directory: redmine/plugins/${{ env.PLUGIN_NAME }}
run: ./scripts/prepare_plugin.sh
shell: bash

- name: Prepare Redmine source
working-directory: redmine
run: ./scripts/prepare_redmine.sh
shell: bash

- name: Adjust Gem environment
run: ./scripts/adjust_gem_env.sh
shell: bash

- name: Install Ruby dependencies
working-directory: redmine
run: ./scripts/install_ruby_dependencies.sh
shell: bash

- name: Run Redmine rake tasks
env:
RAILS_ENV: test
working-directory: redmine
run: ./scripts/run_rake_tasks.sh
shell: bash

- name: Zeitwerk check
env:
RAILS_ENV: test
working-directory: redmine
run: ./scripts/zeitwerk_check.sh
shell: bash

- name: Run tests
env:
RAILS_ENV: test
GOOGLE_CHROME_OPTS_ARGS: "headless,disable-gpu,no-sandbox,disable-dev-shm-usage"
working-directory: redmine
run: ./scripts/run_tests.sh
shell: bash

- name: Run uninstall test
env:
RAILS_ENV: test
working-directory: redmine
run: ./scripts/run_uninstall_test.sh
shell: bash

0 comments on commit a4e025c

Please sign in to comment.