-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.02 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test
on:
- push
- pull_request
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
package_manager: [npm, yarn]
package_root:
[
"./test/app-in-root/",
"./test/app-in-subdirectory/",
"./test/vue-app",
]
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install test app dependencies
run: |
cd ${{ matrix.package_root }}
${{ matrix.package_manager }} install
- name: Run action
uses: ./
with:
github_token: ${{ secrets.github_token }}
package_root: ${{ matrix.package_root }}
use_vue_cli: ${{ contains(matrix.package_root, 'vue')}}
max_attempts: "2"