Merge pull request #2 from dainer88/dependabot/github_actions/actions… #10
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: | |
| 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: Shell script syntax check | |
| run: | | |
| bash -n bin/install bin/list-all bin/exec | |
| - name: Test version listing | |
| run: bash bin/list-all | head -n 5 | |
| - name: Test Angular CLI installation | |
| run: | | |
| mkdir -p /tmp/asdf-angular-cli | |
| bash bin/install 18.2.1 /tmp/asdf-angular-cli | |
| /tmp/asdf-angular-cli/bin/ng version |