Skip to content

Commit 7274e0d

Browse files
committed
Add actions workflow
1 parent 52062dd commit 7274e0d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Jest tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
container:
9+
image: node:${{ matrix.node }}-alpine
10+
strategy:
11+
matrix:
12+
node-version: [6.x, 7.x]
13+
14+
steps:
15+
# Need to install Python 2 for `node-gyp` to build `node-sass`
16+
- name: Install Alpine build tools
17+
run: apk add --no-cache python # make git gcc g++
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+
- name: Run tests
26+
run: yarn test

0 commit comments

Comments
 (0)