Skip to content

Commit 7a6a11f

Browse files
committed
Add actions workflow
1 parent 52062dd commit 7a6a11f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Jest tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [6.x, 7.x]
11+
12+
steps:
13+
# Need to install Python 2 for `node-gyp` to build `node-sass`
14+
- name: Set up Python 2
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: "2.x"
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: Install dependencies
24+
run: yarn install
25+
env:
26+
PYTHON: python2
27+
- name: Run tests
28+
run: yarn test

0 commit comments

Comments
 (0)