Skip to content
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

update actions checkout@v3 setup-node@v3 with node16

update actions checkout@v3 setup-node@v3 with node16 #145

Workflow file for this run

name: Test

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

`schedule` accepts a list of one or more maps with the `cron` key set
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"