Skip to content

chore(angular-v12/ci): add test for angular v12 #3

chore(angular-v12/ci): add test for angular v12

chore(angular-v12/ci): add test for angular v12 #3

name: Testing Angular v12
on:
pull_request:
branches:
- master
jobs:
dependencies:
name: "install dependencies"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout under $GITHUB_WORKSPACE"
uses: "actions/checkout@master"
- name: "Set up NodeJS"
uses: "actions/setup-node@master"
with:
node-version: 14
- name: "Install yarn"
run: yarn --cwd=packages/angular-v12 install
- name: "Cache files"
uses: "actions/cache@master"
id: "main-files"
with:
path: "./packages/angular-v12/*"
key: "${{ github.sha }}"
test:
name: running tests
needs: dependencies
if: ${{ success() }}
runs-on: ubuntu-latest
steps:
- name: Set up NodeJS
uses: actions/setup-node@v1
with:
node-version: 14
- name: "Restore cache files"
uses: "actions/cache@master"
id: "main-files"
with:
path: "./packages/angular-v12/*"
key: "${{ github.sha }}"
- name: Run tests
run: yarn --cwd=packages/angular-v12 test