This repository has been archived by the owner on Aug 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
86 lines (72 loc) · 1.91 KB
/
ci.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CI Test
on:
schedule:
- cron: '0 0 * * 5'
push:
branches:
- master
pull_request:
types: [opened, synchronize]
branches:
- '*'
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
ruby: [2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 3.0]
system_libraries: [true, false]
exclude:
- {os: macos, ruby: 2.1}
- {os: macos, ruby: 2.2}
- {os: macos, ruby: 2.3}
- {os: windows, ruby: 2.1}
- {os: windows, ruby: 2.2}
- {os: windows, ruby: 2.3}
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: install html5lib tests
run: git clone --depth 1 --branch all-error-fixes --single-branch https://github.com/stevecheckoway/html5lib-tests.git test/html5lib-tests
- name: Run tests
env:
USE_SYSTEM_LIBRARIES: ${{ matrix.system_libraries }}
shell: bash
run: ./scripts/ci-test.sh
package:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Install ragel
if: matrix.os == 'ubuntu'
run: sudo apt-get install -y ragel
- name: Install ragel
if: matrix.os == 'macos'
run: brew install ragel
- name: Test Gumbo and gem packaging
shell: bash
run: ./scripts/ci-package-test.sh
gentoo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker pull
run: docker pull stevecheckoway/gentoo-ruby
- name: Test Gentoo Linux
shell: bash
run: ./scripts/gentoo-test.sh