This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 206
77 lines (66 loc) · 1.89 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Test
on:
schedule:
# - push
# - pull_request
# - cron: "35 16 * * 2"
push:
paths-ignore:
- "/*.sh"
- "/.*"
- "/_*"
- "**.txt"
- "**.adoc"
- "**.md"
- ".github/workflows/*.yml"
- "!.github/workflows/test.yml"
pull_request:
paths-ignore:
- "/*.sh"
- "/.*"
- "/_*"
- "**.txt"
- "**.adoc"
- "**.md"
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
package_manager: [npm]
package_root: ["./test/app-in-root/", "./test/app-in-subdirectory/", "./test/vuevite-app"]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install test app dependencies
run: |
cd ${{ matrix.package_root }}
${{ matrix.package_manager }} install
- name: Make sure PYTHON_ENV is set for npm in macos
if: ${{ startsWith(matrix.os, 'macos-') && matrix.package_manager == 'npm' }}
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Make more sure PYTHON_ENV is set for npm in macos
if: ${{ startsWith(matrix.os, 'macos-') && matrix.package_manager == 'npm' }}
run: |
command -v python || :
command -v python3 || :
echo "PYTHON_ENV=$(command -v python)" >> $GITHUB_OUTPUT
- name: Run action
uses: ./
with:
package_manager: ${{ matrix.package_manager }}
github_token: ${{ secrets.github_token }}
package_root: ${{ matrix.package_root }}
use_vue_cli: ${{ contains(matrix.package_root, 'vuevite')}}
max_attempts: "2"