Skip to content

Commit faab143

Browse files
committed
chore(ci): add github workflow for tests
1 parent a61701f commit faab143

File tree

3 files changed

+124
-408
lines changed

3 files changed

+124
-408
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Vue Stripe.js CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [16.x]
16+
17+
steps:
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
- uses: actions/checkout@v2
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Cache NPM
25+
- uses: actions/cache@v2
26+
with:
27+
path: ~/.npm
28+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-node-
31+
32+
- name: Install dependencies
33+
run: npm i
34+
35+
- name: Unit Tests
36+
run: npm run test

0 commit comments

Comments
 (0)