Skip to content

Commit

Permalink
switch CI workflow to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Oct 12, 2023
1 parent 5ed88b6 commit d0bb4be
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 18 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI
on:
push:
branches: ['**']
paths-ignore: ['*.adoc', 'docs/**']
pull_request:
branches: [master]
paths-ignore: ['*.adoc', 'docs/**']
#schedule:
#- cron: '30 2 * * MON'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
activate:
if: |
(github.event_name == 'schedule' && github.repository_owner == 'asciidoctor') ||
(github.event_name == 'push') ||
(github.event_name == 'pull_request' && !startsWith(github.head_ref, 'docs/'))
runs-on: ubuntu-latest
steps:
- name: Proceed
run: echo ok go
build:
needs: activate
strategy:
matrix:
os: [ubuntu-latest]
ruby: ['2.7']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Ruby (uses cached dependencies for non-scheduled build)
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: ${{ github.event_name != 'schedule' }}
- name: Install dependencies (scheduled build only)
if: github.event_name == 'schedule'
run: |
bundle config --local path vendor/bundle
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
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit d0bb4be

Please sign in to comment.