Skip to content

Commit 4f4f41b

Browse files
committed
Add workflow movabletype/mt-data-api-sdk-js
1 parent c297115 commit 4f4f41b

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: movabletype/mt-data-api-sdk-js
2+
on:
3+
push:
4+
branches:
5+
- "**/*"
6+
pull_request:
7+
schedule:
8+
- cron: 5 15 22 * *
9+
concurrency:
10+
# # This item has no matching transformer
11+
# maximum_number_of_builds: 0
12+
env:
13+
MT_HOME: "/home/travis/mt"
14+
PERL_CPANM_OPT: "--from https://www.cpan.org"
15+
jobs:
16+
test:
17+
runs-on: # this agent type is not supported: [[{"dist"=>"jammy"}]]
18+
ubuntu-latest
19+
steps:
20+
- name: checkout
21+
uses: actions/[email protected]
22+
- uses: actions/[email protected]
23+
with:
24+
cache: npm
25+
node-version: 18
26+
# # 'sudo' was not transformed because there is no suitable equivalent in GitHub Actions
27+
- run: curl -sL https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 | tar -xj
28+
- run: sudo mv phantomjs-1.9.8-linux-x86_64 /usr/local/share/phantomjs
29+
- run: sudo ln -sf /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
30+
- run: npm install -g grunt-cli
31+
- run: npm install -g bower
32+
- run: bower install
33+
- run: mysql -e 'CREATE DATABASE mt_test'
34+
- run: sudo apt-get update
35+
- run: sudo apt-get install cpanminus libplack-perl libdbd-mysql-perl curl 2>&1
36+
- run: curl -sL https://cpanmin.us | perl - --sudo App::cpanminus
37+
- run: sudo cpanm -n Digest::SHA
38+
- run: sudo cpanm -n Digest::SHA1
39+
- run: sudo cpanm -n CGI::PSGI
40+
- run: sudo cpanm -n CGI::Parse::PSGI
41+
- run: sudo cpanm -n CGI::Compile
42+
- run: sudo cpanm -n XMLRPC::Transport::HTTP::Plack
43+
- run: sudo cpanm -n HTML::Entities
44+
- run: sudo cpanm -n HTML::Parser
45+
- run: sudo cpanm -n Crypt::DSA
46+
- run: sudo cpanm -n Crypt::SSLeay
47+
- run: sudo cpanm -n Archive::Tar
48+
- run: sudo cpanm -n Archive::Zip
49+
- run: sudo cpanm -n IO::Compress::Gzip
50+
- run: sudo cpanm -n IO::Uncompress::Gunzip
51+
- run: sudo cpanm -n Net::SMTP
52+
- run: sudo cpanm -n IO::Socket::SSL
53+
- run: sudo cpanm -n Net::SSLeay
54+
- run: sudo cpanm -n XML::Parser
55+
- run: sudo cpanm -n Starman
56+
- run: sudo cpanm -n Test::Deep
57+
- run: git clone --branch develop --depth=1 https://github.com/movabletype/movabletype.git $MT_HOME
58+
- run: perl -i -pe 's{DBUser mt}{DBUser travis}g' $MT_HOME/t/mysql-test.cfg
59+
- run: perl -i -pe 's{(eval "use MT::PSGI;";)}{$1 die \$@ if \$@;}g' $MT_HOME/t/mysql-test-psgi-server.pl
60+
- run: npm install
61+
- run: npm test
62+
- uses: rectalogic/notify-irc@v1
63+
if: "${{ github.event_name != 'pull_request' }}"
64+
with:
65+
server: irc.freenode.com
66+
port: 6697
67+
channel: movabletype
68+
nickname: Default nickname
69+
message: Default message
70+
- uses: rectalogic/notify-irc@v1
71+
if: "${{ github.event_name != 'pull_request' }}"
72+
with:
73+
server: irc.freenode.com
74+
port: 6697
75+
channel: movabletype-ja
76+
nickname: Default nickname
77+
message: Default message
78+
services:
79+
mysql:
80+
image: mysql

0 commit comments

Comments
 (0)