ci: Enhance test workflow with npm and pnpm test jobs #15
This file contains hidden or 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 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: | ||
| - 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 | ||