Skip to content

Commit d8a8bbb

Browse files
adding ci step for phantomjs
1 parent ed93c86 commit d8a8bbb

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

+12
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ jobs:
1111
uses: Brightspace/third-party-actions@actions/setup-node
1212
with:
1313
node-version-file: .nvmrc
14+
- name: Setup phantomjs
15+
run: >
16+
sudo apt-get update
17+
sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y
18+
sudo apt-get install libfreetype6 libfreetype6-dev -y
19+
sudo apt-get install libfontconfig1 libfontconfig1-dev -y
20+
cd ~
21+
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64"
22+
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2
23+
sudo tar xvjf $PHANTOM_JS.tar.bz2
24+
sudo mv $PHANTOM_JS /usr/local/share
25+
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin
1426
- name: Install dependencies
1527
run: npm install
1628
- name: Lint and Test

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"karma-phantomjs-launcher": "^0.2.1",
4747
"lcov-result-merger": "^1.0.2",
4848
"mkdirp": "^0.5.1",
49-
"phantomjs-prebuilt": "^2.1.8",
5049
"phantomjs-polyfill": "0.0.1",
5150
"react-addons-test-utils": "^15.3.2",
5251
"rimraf": "^2.4.3",

0 commit comments

Comments
 (0)