Test #469
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: | |
# every day at 10:00 UTC | |
- cron: "0 10 * * *" | |
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: [pnpm, npm, yarn] | |
package_root: ["./test/app-in-root/", "./test/app-in-subdirectory/", "./test/vue-app"] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- uses: pnpm/action-setup@v2 | |
if: matrix.package_manager == 'pnpm' | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 7 | |
run_install: false | |
- 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, 'vue')}} | |
max_attempts: "2" |