Skip to content

Commit

Permalink
github-workflows: test on containers
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed May 9, 2024
1 parent 9741369 commit 851e19a
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,48 @@ jobs:
- run: sudo npm install -g svgo
- run: bundle exec image_optim --info
- run: bundle exec rspec
legacy:
containers:
runs-on: ubuntu-latest
container: ${{ matrix.container }}
strategy:
matrix:
container:
- ruby:1.9.3
- ruby:2.0
- ruby:2.1
- ruby:2.2
- debian:buster
- debian:bullseye
- debian:bookworm
# - alpine
fail-fast: false
steps:
- uses: actions/checkout@v3
- run: gem install bundler --version '< 2'
- run: bundle install && bundle install # fighting platform specific gems problem in older bundler
- run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
if command -v apt &> /dev/null; then
apt update
apt -y install \
build-essential \
git \
curl \
imagemagick \
ruby \
ruby-dev \
rubygems
elif command -v apk &> /dev/null; then
apk add \
build-base \
git \
curl \
imagemagick \
ruby \
ruby-dev
fi
- run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
. ~/.nvm/nvm.sh
nvm install 16
npm install -g svgo
nvm install 20
echo "PATH=$PATH" >> $GITHUB_ENV
- run: npm install -g svgo
- run: |
gem install bundler || gem install bundler --version '< 2.4'
bundle install
- run: bundle exec bin/image_optim --info
- run: bundle exec rspec
windows:
Expand Down

0 comments on commit 851e19a

Please sign in to comment.