Browse Source

Merge pull request #5301 from abpframework/chore/gh-action-cache

Added cache process to Angular GitHub action
pull/5320/head
Bunyamin Coskuner 5 years ago
committed by GitHub
parent
commit
ea36281b84
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 39
      .github/workflows/angular.yml
  2. 2
      npm/ng-packs/package.json
  3. 1058
      npm/ng-packs/yarn.lock
  4. 4
      templates/app/angular/.gitignore
  5. 9720
      templates/app/angular/yarn.lock

39
.github/workflows/angular.yml

@ -9,8 +9,41 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/cache@v2
with:
node-version: '12.x'
- run: yarn && yarn ci
path: 'npm/ng-packs/node_modules'
key: ${{ runner.os }}-${{ hashFiles('npm/ng-packs/yarn.lock') }}
- uses: actions/cache@v2
with:
path: 'templates/app/angular/node_modules'
key: ${{ runner.os }}-${{ hashFiles('templates/app/angular/yarn.lock') }}
- name: Install packages
run: yarn install
working-directory: npm/ng-packs
- name: Run lint
run: yarn ng lint
working-directory: npm/ng-packs
- name: Run prepare workspace
run: yarn prepare:workspace
working-directory: npm/ng-packs
- name: Run test
run: yarn ci:test
working-directory: npm/ng-packs
- name: Build dev-app
run: yarn build --prod
working-directory: npm/ng-packs
- name: Install packages of app template
run: yarn install
working-directory: templates/app/angular
- name: Build app template
run: yarn build --prod
working-directory: templates/app/angular

2
npm/ng-packs/package.json

@ -19,7 +19,7 @@
"prepare:workspace": "yarn scripts:build --noInstall",
"ci": "yarn ng lint && yarn prepare:workspace && yarn ci:test && yarn ci:build",
"ci:test": "ng test --coverage=false --silent",
"ci:build": "cd scripts && yarn build:prod",
"ci:build": "cd scripts && yarn install && yarn build:prod",
"lerna": "lerna",
"compile:ivy": "yarn ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points --tsconfig './tsconfig.prod.json' --source node_modules --async false",
"postinstall": "npm run compile:ivy"

1058
npm/ng-packs/yarn.lock

File diff suppressed because it is too large

4
templates/app/angular/.gitignore

@ -43,6 +43,4 @@ testem.log
# System Files
.DS_Store
Thumbs.db
yarn.lock
Thumbs.db

9720
templates/app/angular/yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save