From 846bfd3977490da92bda5e8564e8a6c2e2a6f475 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 18 Nov 2020 23:29:06 -0700 Subject: rename test upstream workflow to upstream dispatch [skip ci] --- .github/workflows/test-upstream.yml | 32 -------------------------------- .github/workflows/upstream-dispatch.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/test-upstream.yml create mode 100644 .github/workflows/upstream-dispatch.yml (limited to '.github') diff --git a/.github/workflows/test-upstream.yml b/.github/workflows/test-upstream.yml deleted file mode 100644 index 163d4bd8..00000000 --- a/.github/workflows/test-upstream.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Test Upstream -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 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 -- cgit v1.2.3