Skip to content

Commit c6c6477

Browse files
committed
Replace Travis CI with GitHub Actions
1 parent d22b369 commit c6c6477

File tree

2 files changed

+75
-73
lines changed

2 files changed

+75
-73
lines changed

.github/workflows/test.yml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
perl: [
17+
# Not all of ours deps support these versions. See #193.
18+
# '5.8', '5.10', '5.12',
19+
20+
'5.14', '5.16', '5.18',
21+
'5.20', '5.22', '5.24', '5.26', '5.28',
22+
'5.30', '5.32', '5.34', '5.36', '5.38',
23+
]
24+
25+
runs-on: ubuntu-latest
26+
27+
name: ${{ matrix.perl }}
28+
29+
# 4 CPUs as per https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
30+
env:
31+
HARNESS_OPTIONS: j4
32+
HARNESS_TIMER: 1
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- uses: shogo82148/actions-setup-perl@v1
38+
with:
39+
perl-version: ${{ matrix.perl }}
40+
41+
# Bump EU:MM on 5.14 to fix MYMETA generation.
42+
- run: cpanm --notest --skip-satisfied ExtUtils::MakeMaker~6.57_07
43+
44+
- run: cpanm --notest --skip-satisfied --installdeps --with-develop .
45+
- run: cpanm --notest --skip-satisfied Test2::Harness
46+
47+
- run: yath test t xt
48+
49+
# Test high-profile reverse deps, taken from from Task::Catalyst):
50+
# (note: currently skipping DBIC deps for speed)
51+
- run: make install
52+
53+
# Pure author deps (of reverse deps):
54+
- run: cpanm --notest --skip-satisfied YAML::Syck
55+
- run: cpanm --notest Carp::Assert::[email protected]
56+
- run: cpanm --notest Test::WWW::[email protected]
57+
58+
# Both author deps & reverse deps:
59+
- run: HARNESS_OPTIONS= cpanm --skip-satisfied Catalyst::View::TT || ( cat ~/.cpanm/build.log; false )
60+
- run: cpanm --skip-satisfied Catalyst::Plugin::Authentication || ( cat ~/.cpanm/build.log; false )
61+
62+
# Pure reverse deps (call with --test-only):
63+
- run: cpanm --test-only -v Catalyst::Devel
64+
- run: cpanm --test-only -v Catalyst::Action::REST
65+
- run: cpanm --test-only -v Catalyst::Component::InstancePerContext
66+
- run: cpanm --test-only -v Catalyst::Plugin::Session
67+
- run: cpanm --test-only -v Catalyst::Plugin::Session::State::Cookie
68+
- run: cpanm --test-only -v Catalyst::Plugin::Static::Simple
69+
- run: cpanm --test-only -v Catalyst::Plugin::ConfigLoader
70+
- run: cpanm --test-only -v Catalyst::Authentication::Credential::HTTP
71+
- run: cpanm --test-only -v Catalyst::View::Email
72+
73+
# Racey under parallel testing.
74+
- run: HARNESS_OPTIONS= cpanm --test-only -v Catalyst::Plugin::Session::Store::File
75+
- run: HARNESS_OPTIONS= cpanm --test-only -v Catalyst::Plugin::I18N

.travis.yml

-73
This file was deleted.

0 commit comments

Comments
 (0)