summaryrefslogtreecommitdiff
path: root/.github/workflows/upstream-dispatch.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/upstream-dispatch.yml')
-rw-r--r--.github/workflows/upstream-dispatch.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/upstream-dispatch.yml b/.github/workflows/upstream-dispatch.yml
new file mode 100644
index 00000000..ca20148e
--- /dev/null
+++ b/.github/workflows/upstream-dispatch.yml
@@ -0,0 +1,32 @@
+name: Upstream Dispatch
+on: repository_dispatch
+jobs:
+ build:
+ name: ${{ github.event.client_payload.message }}
+ runs-on: ubuntu-latest
+ env:
+ PYGMENTS_VERSION: '~> 1.2.0'
+ RGHOST_VERSION: '0.9.7'
+ PRAWN_GMAGICK_VERSION: '0.0.9'
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: '2.7'
+ - 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 install ghostscript libgraphicsmagick1-dev poppler-utils
+ - name: Install dependencies
+ run: |
+ bundle --jobs 3 --retry 3
+ # FIXME: should switch to branch specified in payload
+ bundle exec ruby scripts/switch-to-asciidoctor-master.rb
+ 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