mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(ci): use /tmp/workspace for working directory
This commit is contained in:
33
.circleci/config.yml
Normal file
33
.circleci/config.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
version: 2
|
||||
|
||||
jobs:
|
||||
build:
|
||||
working_directory: /tmp/workspace
|
||||
docker:
|
||||
- image: circleci/node:latest-browsers
|
||||
branches:
|
||||
# ignore:
|
||||
# - core
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: dependency-cache-{{ checksum "package.json" }}
|
||||
- run:
|
||||
name: Install monorepo node modules
|
||||
command: npm i
|
||||
- save_cache:
|
||||
key: dependency-cache-{{ checksum "package.json" }}
|
||||
paths:
|
||||
- node_modules
|
||||
- restore_cache:
|
||||
key: dependency-cache-{{ checksum "core/package.json" }}
|
||||
- run:
|
||||
name: Install core node modules
|
||||
command: npm --prefix core/ i
|
||||
- save_cache:
|
||||
key: dependency-cache-{{ checksum "core/package.json" }}
|
||||
paths:
|
||||
- core/node_modules
|
||||
- run:
|
||||
name: Validate Core
|
||||
command: npm --prefix core/ run validate.ci
|
||||
32
circle.yml
32
circle.yml
@@ -1,32 +0,0 @@
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
working_directory: ~/ionic/
|
||||
docker:
|
||||
- image: circleci/node:latest-browsers
|
||||
branches:
|
||||
# ignore:
|
||||
# - core
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: node_modules_{{ checksum "package.json" }}
|
||||
- run:
|
||||
name: Install monorepo node modules
|
||||
command: npm i
|
||||
- save_cache:
|
||||
key: node_modules_{{ checksum "package.json" }}
|
||||
paths:
|
||||
- ~/ionic/node_modules/
|
||||
- restore_cache:
|
||||
key: node_modules_{{ checksum "core/package.json" }}
|
||||
- run:
|
||||
name: Install core node modules
|
||||
command: npm --prefix core/ i
|
||||
- save_cache:
|
||||
key: node_modules_{{ checksum "core/package.json" }}
|
||||
paths:
|
||||
- ~/ionic/core/node_modules/
|
||||
- run:
|
||||
name: Validate Core
|
||||
command: npm --prefix core/ run validate.ci
|
||||
Reference in New Issue
Block a user