Skip to content

Commit 723989d

Browse files
committed
ff
1 parent 9c7483a commit 723989d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
REDMINE_VER: 5.1-stable
1515
PLUGIN_NAME: vault
1616
REDMINE_GIT_REPO: https://github.com/redmine/redmine.git
17+
REDMINE_PATH: ${{ github.workspace }}/redmine
1718
RAILS_ENV: test
1819

1920
steps:
@@ -35,15 +36,15 @@ jobs:
3536
3637
- name: Set up database
3738
run: |
38-
cd ${{ github.workspace }}/redmine
39-
ln -s ${{ github.workspace }} ${{ github.workspace }}/redmine/plugins/$PLUGIN_NAME
40-
cp ${{ github.workspace }}/.github/workflows/database.yml ${{ github.workspace }}/redmine/config/database.yml
39+
cd $REDMINE_PATH
40+
ln -s ${{ github.workspace }} $REDMINE_PATH/plugins/$PLUGIN_NAME
41+
cp ${{ github.workspace }}/.github/workflows/database.yml $REDMINE_PATH/config/database.yml
4142
bundle install
4243
bundle exec rake db:create db:migrate redmine:plugins:migrate
4344
4445
- name: Run tests
4546
run: |
46-
cd ${{ github.workspace }}/redmine
47+
cd $REDMINE_PATH
4748
export SKIP_COVERAGE=1
4849
bundle exec rake redmine:plugins:test:units NAME=$PLUGIN_NAME RUBYOPT="-W0"
4950
bundle exec rake redmine:plugins:test:integration NAME=$PLUGIN_NAME RUBYOPT="-W0"

0 commit comments

Comments
 (0)