Skip to content

Commit 5094ed3

Browse files
authored
Create test.yml
1 parent bc3f9d3 commit 5094ed3

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Diff for: .github/workflows/test.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Tests
5+
6+
on:
7+
push:
8+
pull_request:
9+
branches: [ master, develop ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [10.x, 12.x]
19+
20+
steps:
21+
- uses: actions/setup-ruby@v1
22+
with:
23+
ruby-version: '2.6'
24+
- uses: actions/checkout@v2
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
30+
- run: gem install bundler
31+
- run: bundle install
32+
- run: npm ci
33+
- run: npm run build --if-present
34+
- run: npm test
35+
env:
36+
CI: true

0 commit comments

Comments
 (0)