Skip to content

Commit

Permalink
change codecov version to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
haru committed Feb 24, 2025
1 parent 8dc2265 commit 0967639
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: build
on:
on:
push:
pull_request:
env:
Expand Down Expand Up @@ -44,12 +44,14 @@ jobs:
run: bash -x ./build-scripts/build.sh
- name: Clean
run: bash -x ./build-scripts/cleanup.sh
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
- name: Slack Notification on Failure
uses: rtCamp/[email protected]
if: failure()
env:
SLACK_CHANNEL: plugin-wiki_ext
SLACK_TITLE: Test Failure
SLACK_COLOR: danger

1 change: 1 addition & 0 deletions build-scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ cd $PATH_TO_REDMINE
# bundle exec rake TEST=test/unit/role_test.rb
bundle exec rake redmine:plugins:test NAME=$NAME_OF_PLUGIN

cp -pr plugins/$NAME_OF_PLUGIN/coverage $PATH_TO_PLUGIN
3 changes: 2 additions & 1 deletion build-scripts/env.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export TRAVISDIR=`pwd`
export PATH_TO_PLUGIN=`dirname ${TRAVISDIR}`
export TESTSPACE=$PATH_TO_PLUGIN/testspace
export TESTSPACE_NAME=testspace
export TESTSPACE=$PATH_TO_PLUGIN/$TESTSPACE_NAME
export PATH_TO_REDMINE=$TESTSPACE/redmine
export RAILS_ENV=test
5 changes: 3 additions & 2 deletions build-scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ then
git checkout -b $REDMINE_GIT_TAG origin/$REDMINE_GIT_TAG
fi

# create a link to the backlogs plugin
ln -sf $PATH_TO_PLUGIN plugins/$NAME_OF_PLUGIN

mkdir -p plugins/$NAME_OF_PLUGIN
find $PATH_TO_PLUGIN -mindepth 1 -maxdepth 1 ! -name $TESTSPACE_NAME -exec cp -r {} plugins/$NAME_OF_PLUGIN/ \;

cp "$SCRIPTDIR/database.yml" config/database.yml

Expand Down

0 comments on commit 0967639

Please sign in to comment.