This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
update actions checkout@v3 setup-node@v3 with node16 #145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |