Skip to content

Commit

Permalink
GITHUB_WORKSPACE
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 00054b2 commit 0290fd2
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/test-postgis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Show current directory
run: pwd

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

- name: List scripts directory for debugging
run: ls -l ./scripts
run: ls -l ${{ env.GITHUB_WORKSPACE }}/scripts

- name: Checkout Redmine
uses: actions/checkout@v4
Expand All @@ -72,44 +66,44 @@ jobs:
path: redmine/plugins/${{ env.PLUGIN_NAME }}

- name: Setup Environment
run: /scripts/setup_environment.sh
run: ${{ env.GITHUB_WORKSPACE }}/scripts/setup_environment.sh

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

- name: Prepare Redmine source
working-directory: redmine
run: /scripts/prepare_redmine.sh
run: ${{ env.GITHUB_WORKSPACE }}/scripts/prepare_redmine.sh

- name: Adjust Gem environment
run: /scripts/adjust_gem_env.sh
run: ${{ env.GITHUB_WORKSPACE }}/scripts/adjust_gem_env.sh

- name: Install Ruby dependencies
working-directory: redmine
run: /scripts/install_ruby_dependencies.sh
run: ${{ env.GITHUB_WORKSPACE }}/scripts/install_ruby_dependencies.sh

- name: Run Redmine rake tasks
env:
RAILS_ENV: test
working-directory: redmine
run: /scripts/run_rake_tasks.sh
run: ${{ env.GITHUB_WORKSPACE }}/scripts/run_rake_tasks.sh

- name: Zeitwerk check
env:
RAILS_ENV: test
working-directory: redmine
run: /scripts/zeitwerk_check.sh
run: ${{ env.GITHUB_WORKSPACE }}/scripts/zeitwerk_check.sh

- 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
run: ${{ env.GITHUB_WORKSPACE }}/scripts/run_tests.sh

- name: Run uninstall test
env:
RAILS_ENV: test
working-directory: redmine
run: /scripts/run_uninstall_test.sh
run: ${{ env.GITHUB_WORKSPACE }}/scripts/run_uninstall_test.sh

0 comments on commit 0290fd2

Please sign in to comment.