Skip to content

Commit b864244

Browse files
authored
Merge pull request #1453 from terencehonles/convert-to-github-actions
convert to github actions
2 parents 0ed8aff + 681f539 commit b864244

File tree

2 files changed

+58
-27
lines changed

2 files changed

+58
-27
lines changed

.github/workflows/ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
on: push
3+
4+
env:
5+
JRUBY_OPTS: -Xcext.enabled=true
6+
7+
jobs:
8+
build:
9+
name: "Test / Ruby ${{ matrix.ruby }}"
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
ruby:
14+
- "2.4"
15+
- "2.5"
16+
- "2.6"
17+
- "2.7"
18+
fail-fast: false
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
with:
24+
fetch-depth: 10
25+
26+
- uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: ${{ matrix.ruby }}
29+
bundler-cache: true
30+
31+
- uses: actions/setup-python@v2
32+
with:
33+
# This should match lib/github/markups.rb GitHub::Markups::MARKUP_RST
34+
python-version: '3.x'
35+
36+
- uses: actions/cache@v2
37+
with:
38+
path: ~/.cache/pip
39+
key: ${{ runner.os }}-pip
40+
41+
- name: Install Perl dependencies
42+
run: |
43+
curl -1sLf \
44+
'https://dl.cloudsmith.io/public/nxadm-pkgs/rakudo-pkg/setup.deb.sh' \
45+
| sudo -E bash
46+
sudo apt-get update -qq
47+
sudo apt-get install perl rakudo-pkg
48+
49+
curl -L http://cpanmin.us | perl - --sudo App::cpanminus
50+
sudo cpanm --installdeps --notest Pod::Simple
51+
52+
- name: Install Python dependencies
53+
run: python -m pip install docutils
54+
55+
- name: Run rake
56+
run: |
57+
export PATH=$PATH:/.perl6/bin:/opt/rakudo-pkg/bin
58+
bundle exec rake

.travis.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)