1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Run tests for gems in different steps

This commit is contained in:
Eloy Pérez 2022-02-05 12:30:48 +01:00 committed by Jordan Owens
parent 3dd160bc9b
commit 0af1e1e929
2 changed files with 12 additions and 21 deletions

View file

@ -1,19 +0,0 @@
#!/bin/bash
set -ev
echo "Running sinatra tests..."
bundle exec rake
echo "Running sinatra-contrib tests..."
export BUILDIR=$GITHUB_WORKSPACE/sinatra-contrib
export BUNDLE_GEMFILE=$BUILDIR/Gemfile
cd $BUILDIR
bundle install --jobs=3 --retry=3
bundle exec rake
echo "Running rack-protection tests..."
export BUILDIR=$GITHUB_WORKSPACE/rack-protection
export BUNDLE_GEMFILE=$BUILDIR/Gemfile
cd $BUILDIR
bundle install --jobs=3 --retry=3
bundle exec rake

View file

@ -24,8 +24,18 @@ jobs:
bundler-cache: true
- name: Install dependencies
run: sudo apt-get install -y pandoc nodejs pkg-config libxml2-dev libxslt-dev
- name: Run tests
run: ./.actions.sh
- name: Run sinatra tests
run: bundle exec rake
- name: Run sinatra-contrib tests
run: |
cd $GITHUB_WORKSPACE/sinatra-contrib
bundle install --jobs=3 --retry=3
bundle exec rake
- name: Run rack-protection tests
run: |
cd $GITHUB_WORKSPACE/rack-protection
bundle install --jobs=3 --retry=3
bundle exec rake
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}