Update .github/workflows/Continues Integration.yaml
Some checks failed
Continues Integration / Install dependencies (push) Failing after 3s
Continues Integration / Build (push) Has been skipped
Continues Integration / Build production (push) Has been skipped
Continues Integration / Build docker image (push) Failing after 3s

This commit is contained in:
Zakary Timson 2023-08-07 02:50:07 +00:00
parent da8e9dda00
commit d2addd327a

View File

@ -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