-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dded53
commit 9cb1ede
Showing
1 changed file
with
21 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,19 +3,19 @@ name: Tests | |
|
||
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel any previous run(s) on new commit push | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.5 | ||
ruby-version: 3.3 | ||
bundler-cache: true | ||
- name: Run rubocop | ||
run: bundle exec rake rubocop | ||
|
@@ -24,17 +24,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby-version: [2.7, jruby] | ||
ruby-version: [2.7, 3.3, jruby] | ||
env: | ||
DISPLAY: ":0" | ||
steps: | ||
- name: Cancel any previous run(s) on new commit push | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Set up ffmpeg | ||
uses: FedericoCarboni/setup-ffmpeg@v1 | ||
uses: FedericoCarboni/setup-ffmpeg@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
id: setup-ffmpeg | ||
|
@@ -43,24 +39,20 @@ jobs: | |
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
- name: Start xvfb | ||
run: Xvfb -ac $DISPLAY -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
- name: Run tests | ||
run: bundle exec rake spec | ||
- name: Run headless test | ||
uses: coactions/setup-xvfb@v1 | ||
with: | ||
run: bundle exec rake spec | ||
|
||
test-windows: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
ruby-version: [2.5, jruby] | ||
ruby-version: [2.7, 3.3, jruby] | ||
steps: | ||
- name: Cancel any previous run(s) on new commit push | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Set up ffmpeg | ||
uses: FedericoCarboni/setup-ffmpeg@v1 | ||
uses: FedericoCarboni/setup-ffmpeg@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
id: setup-ffmpeg | ||
|
@@ -73,18 +65,14 @@ jobs: | |
run: bundle exec rake spec | ||
|
||
test-macos: | ||
runs-on: macos-latest | ||
runs-on: macos-13 | ||
strategy: | ||
matrix: | ||
ruby-version: [2.5, 2.7] | ||
ruby-version: [2.7, 3.3] | ||
steps: | ||
- name: Cancel any previous run(s) on new commit push | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Set up ffmpeg | ||
uses: FedericoCarboni/setup-ffmpeg@v1 | ||
uses: FedericoCarboni/setup-ffmpeg@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
id: setup-ffmpeg | ||
|