Skip to content

Commit d163810

Browse files
authored
gh actions
1 parent 09928ba commit d163810

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Check DataURI package
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request_target:
7+
types: [assigned, opened, synchronize, reopened]
8+
jobs:
9+
check-package:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node: [ '10', '12', '14', '16' ]
14+
name: Check DataURI package on Node.js ${{ matrix.node }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: ${{ matrix.node }}
20+
- uses: actions/cache@v2
21+
with:
22+
path: ~/.npm
23+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
24+
restore-keys: |
25+
${{ runner.os }}-node-
26+
- name: Build and test
27+
run: |
28+
npm ci --prefer-offline --no-audit
29+
npm test

0 commit comments

Comments
 (0)