https://github.com/layzeedk/setup-angular
Set up your GitHub Actions workflow with a specific version of Angular
https://github.com/layzeedk/setup-angular
Last synced: 7 days ago
JSON representation
Set up your GitHub Actions workflow with a specific version of Angular
- Host: GitHub
- URL: https://github.com/layzeedk/setup-angular
- Owner: LayZeeDK
- Created: 2022-01-01T22:45:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T22:24:41.000Z (over 4 years ago)
- Last Synced: 2025-02-26T23:16:03.841Z (over 1 year ago)
- Language: JavaScript
- Size: 287 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# setup-angular [WIP]
Set up your GitHub Actions workflow with a specific version of Angular.
# Usage
## Basic
```yml
name: Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: yarn
node-version: 12
- uses: ngworker/setup-angular@v1
with:
angular-version: 12
- run: yarn install
- run: yarn test
```
## Matrix usage
```yaml
name: Test
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
angular:
- 9.0
- 9.1
- 10.0
- 10.1
- 10.2
- 11.0
- 11.1
- 11.2
- 12.0
- 12.1
- 12.2
- 13.0
- 13.1
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: yarn
node-version: 12
- name: Set up Angular ${{ matrix.angular }}
uses: ngworker/setup-angular@v1
with:
angular-version: ${{ matrix.angular }}
- run: yarn install
- run: yarn test
```
## Node.js compatibility
See [Angular compatibility matrix](https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3)
for Angular's Node.js compatibility.