Create ci-fast-tooling.yml (#85)
* Create ci-fast-tooling.yml * change ci title * add build steps * add test * add npm prepare * only install process in build * npm run build if present * remove test * add npm 7 build * change node version to 16 * add caching * change tittle for naming convention * add caching path * seperate build and test task for time management * seperate build and test task * rm npm run build if present * fix yml syntax * Update .github/workflows/ci-fast-tooling.yml we can try that also. it doesn't harm Co-authored-by: Jane Chu <7559015+janechu@users.noreply.github.com> Co-authored-by: Jane Chu <7559015+janechu@users.noreply.github.com>
This commit is contained in:
Родитель
d39991bc75
Коммит
acb22f8fca
|
@ -0,0 +1,48 @@
|
|||
name: CI - FAST Tooling
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
pull_request:
|
||||
branches:
|
||||
- release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Cache multiple paths
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build
|
||||
run: npm run build --if-present
|
||||
|
||||
- name: Test
|
||||
run: npm run test --if-present
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче