chore: update workflows #2
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: | |
- 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@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: yarn | |
- 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' |