-
Notifications
You must be signed in to change notification settings - Fork 499
35 lines (35 loc) · 1.14 KB
/
upstream-dispatch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Upstream Dispatch
on: repository_dispatch
permissions: read-all
jobs:
build:
name: ${{ github.event.client_payload.message }}
runs-on: ubuntu-22.04
env:
ASCIIDOCTOR_DIAGRAM_VERSION: '~> 2.1'
PYGMENTS_VERSION: '~> 2.0'
RGHOST_VERSION: '0.9.7'
PRAWN_GMAGICK_VERSION: '0.0.9'
steps:
- uses: actions/checkout@v4
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Configure Bundler
run: |
bundle config --local clean true
bundle config --local path .bundle/gems
bundle config --local without coverage docs lint
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install ghostscript libgraphicsmagick1-dev poppler-utils
- name: Install dependencies
run: |
bundle --jobs 3 --retry 3
bundle exec ruby scripts/switch-to-asciidoctor-head.rb ${{ github.event.client_payload.branch }}
rm -f Gemfile.lock
bundle --jobs 3 --retry 3
- name: Run tests
run: bundle exec ruby -w $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') spec