Skip to content

Commit bbeddb8

Browse files
committed
refactor: update github workflow for CI
1 parent 10c4f48 commit bbeddb8

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,30 @@
11
name: Vue Stripe.js CI
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
412

513
jobs:
6-
build:
14+
ci:
715
runs-on: ubuntu-latest
816

9-
strategy:
10-
matrix:
11-
node-version: [16.x]
12-
1317
steps:
14-
- uses: actions/checkout@v2
15-
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v2
18-
with:
19-
node-version: ${{ matrix.node-version }}
18+
- uses: actions/checkout@v4
2019

21-
- name: Cache NPM
22-
uses: actions/cache@v2
20+
- name: Use Node.js
21+
uses: actions/setup-node@v4
2322
with:
24-
path: ~/.npm
25-
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
26-
restore-keys: |
27-
${{ runner.os }}-node-
23+
node-version: 20
24+
cache: 'pnpm'
2825

2926
- name: Install dependencies
30-
run: yarn
27+
run: pnpm install
3128

32-
- name: Unit Tests
33-
run: yarn test
29+
- name: Run CI
30+
run: pnpm run ci

0 commit comments

Comments
 (0)