Bump up version (0.0.12) #66
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: ruby-tests | |
| on: | |
| pull_request_target: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: {} | |
| jobs: | |
| build: | |
| name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }} | |
| runs-on: "ubuntu-latest" | |
| if: | | |
| github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target' || | |
| github.actor != 'dependabot[bot]' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: ["3.4"] | |
| gemfile: | |
| - Gemfile | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: vendor/bundle | |
| key: > | |
| ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles(matrix.gemfile) }} | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Install system dependencies | |
| run: | | |
| # Install ImageMagick and zsh | |
| sudo apt-get update | |
| sudo apt-get install -y imagemagick zsh espeak | |
| # Download and install FFmpeg 8 | |
| wget --quiet https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz | |
| tar -xf ffmpeg-master-latest-linux64-gpl.tar.xz | |
| sudo cp ffmpeg-master-latest-linux64-gpl/bin/ffmpeg /usr/local/bin/ | |
| sudo cp ffmpeg-master-latest-linux64-gpl/bin/ffprobe /usr/local/bin/ | |
| # Download and install ttyd | |
| wget --quiet https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.x86_64 | |
| chmod +x ttyd.x86_64 | |
| sudo mv ttyd.x86_64 /usr/local/bin/ttyd | |
| # Install ffmpeg-normalize | |
| pip3 install ffmpeg-normalize | |
| - name: Install gem dependencies | |
| env: | |
| BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
| run: | | |
| gem install bundler | |
| bundle config path vendor/bundle | |
| bundle update --jobs 4 --retry 3 | |
| - name: Run Tests | |
| env: | |
| BUNDLE_GEMFILE: ${{ matrix.gemfile }} | |
| run: | | |
| bundle exec rake |