Update .github/workflows/Continues Integration.yaml
Some checks failed
Some checks failed
This commit is contained in:
parent
da8e9dda00
commit
d2addd327a
31
.github/workflows/Continues Integration.yaml
vendored
31
.github/workflows/Continues Integration.yaml
vendored
@ -15,6 +15,8 @@ jobs:
|
||||
|
||||
- name: Restore cache
|
||||
uses: ztimson/actions/cache/restore@develop
|
||||
with:
|
||||
key: node_modules
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
@ -22,6 +24,7 @@ jobs:
|
||||
- name: Cache node_modules
|
||||
uses: ztimson/actions/cache/store@develop
|
||||
with:
|
||||
key: node_modules
|
||||
pattern: node_modules/*
|
||||
|
||||
build-dev:
|
||||
@ -33,21 +36,14 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: ztimson/actions/git/checkout@develop
|
||||
|
||||
- name: Restore node_modules
|
||||
uses: actions/cache/restore@v3
|
||||
- name: Restore cache
|
||||
uses: ztimson/actions/cache/restore@develop
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{runner.os}}-node_modules
|
||||
key: node_modules
|
||||
|
||||
- name: Build sources
|
||||
run: npm run build:dev
|
||||
|
||||
- name: Cache build artifacts
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
path: ./dist
|
||||
key: dist-dev
|
||||
|
||||
build-prod:
|
||||
name: Build production
|
||||
needs: dependencies
|
||||
@ -55,23 +51,16 @@ jobs:
|
||||
steps:
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: ztimson/actions/git/checkout@develop
|
||||
|
||||
- name: Restore node_modules
|
||||
uses: actions/cache/restore@v3
|
||||
- name: Restore cache
|
||||
uses: ztimson/actions/cache/restore@develop
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{runner.os}}-node_modules
|
||||
key: node_modules
|
||||
|
||||
- name: Build sources
|
||||
run: npm run build:prod
|
||||
|
||||
- name: Cache build artifacts
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
path: ./dist
|
||||
key: dist-prod
|
||||
|
||||
docker:
|
||||
name: Build docker image
|
||||
container: docker
|
||||
|
Loading…
Reference in New Issue
Block a user