Skip to content

delete functional

delete functional #32

Workflow file for this run

name: Test Redmine Plugin
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [3.2]
env:
REDMINE_VER: 5.1-stable
PLUGIN_NAME: vault
REDMINE_GIT_REPO: https://github.com/redmine/redmine.git
REDMINE_PATH: ${{ github.workspace }}/redmine
RAILS_ENV: test
steps:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout redmine repo
run: git clone --depth=1 --branch=$REDMINE_VER $REDMINE_GIT_REPO $REDMINE_PATH
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y sqlite3
- name: Set up database
run: |
cd $REDMINE_PATH
ln -s ${{ github.workspace }} $REDMINE_PATH/plugins/$PLUGIN_NAME
cp ${{ github.workspace }}/.github/database.yml $REDMINE_PATH/config/database.yml
bundle install
bundle exec rake db:create db:migrate redmine:plugins:migrate
- name: Run tests
run: |
cd $REDMINE_PATH
export SKIP_COVERAGE=1
bundle exec rake redmine:plugins:test:units NAME=$PLUGIN_NAME RUBYOPT="-W0"
bundle exec rake redmine:plugins:test:integration NAME=$PLUGIN_NAME RUBYOPT="-W0"
bundle exec rake redmine:plugins:migrate NAME=$PLUGIN_NAME VERSION=0