Skip to content

ci: Enhance test workflow with npm and pnpm test jobs #15

ci: Enhance test workflow with npm and pnpm test jobs

ci: Enhance test workflow with npm and pnpm test jobs #15

Workflow file for this run

name: Test asdf-angular-cli plugin
on:
push:
pull_request:
schedule:
# Run weekly to show activity and catch regressions
- cron: '0 3 * * 1'
jobs:
test-npm:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:

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

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
- name: Checkout
uses: actions/checkout@v5
- name: Install dependencies
run: |
if [[ "$RUNNER_OS" == "macOS" ]]; then
brew install jq npm
else
sudo apt-get update && sudo apt-get install -y jq npm
fi
- name: Install asdf
uses: asdf-vm/actions/setup@v4
- name: Install asdf-angular-cli
uses: asdf-vm/actions/plugins-add@v4
- uses: asdf-vm/actions/plugin-test@v4
with:
command: ng --version
test-pnpm:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install dependencies
run: |
if [[ "$RUNNER_OS" == "macOS" ]]; then
brew install jq pnpm
else
sudo apt-get update && sudo apt-get install -y jq pnpm
fi
- name: Install asdf
uses: asdf-vm/actions/setup@v4
- name: Install asdf-angular-cli
uses: asdf-vm/actions/plugins-add@v4
- uses: asdf-vm/actions/plugin-test@v4
with:
command: ng --version