Skip to content

Commit cbd0be1

Browse files
committed
Run tests on GitHub Actions
1 parent 3f24498 commit cbd0be1

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily

.github/workflows/nodejs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: nodejs
2+
on: [pull_request, push]
3+
jobs:
4+
build:
5+
runs-on: ${{ matrix.os }}
6+
strategy:
7+
matrix:
8+
node-version: [10, 12, 14]
9+
os: [ubuntu-latest, windows-latest, macOS-latest]
10+
steps:
11+
- uses: actions/[email protected]
12+
- name: Node.js ${{ matrix.node-version }}
13+
uses: actions/[email protected]
14+
with:
15+
node-version: ${{ matrix.node-version }}
16+
- name: Update npm
17+
run: |
18+
npm install -g npm
19+
npm --version
20+
- name: Install dependencies
21+
uses: bahmutov/[email protected]
22+
with:
23+
useLockFile: false
24+
- name: npm ls
25+
run: npm ls
26+
- name: Test
27+
run: npm test

0 commit comments

Comments
 (0)