6 Commits
v1 ... v2

Author SHA1 Message Date
tom.coursow 213f97e472 .gitea/workflows/deploy.yml aktualisiert
Deployment / lint (push) Successful in 27s
Deployment / test (push) Successful in 1m0s
Deployment / build (push) Successful in 1m5s
Deployment / deploy (push) Successful in 12s
2023-07-27 18:35:04 +02:00
tom.coursow a2fb068356 .gitea/workflows/deploy.yml aktualisiert
Deployment / lint (push) Successful in 54s
Deployment / test (push) Successful in 1m0s
Deployment / build (push) Successful in 1m5s
Deployment / deploy (push) Successful in 12s
2023-07-27 18:31:44 +02:00
tom.coursow 985cde05bb action.yml aktualisiert
Deployment / lint (push) Successful in 1m4s
Deployment / test (push) Successful in 59s
Deployment / build (push) Successful in 1m1s
Deployment / deploy (push) Successful in 12s
2023-07-27 18:30:34 +02:00
tom.coursow 682aa7b9e0 action.yml aktualisiert
Deployment / lint (push) Successful in 54s
Deployment / test (push) Successful in 1m0s
Deployment / build (push) Successful in 1m5s
Deployment / deploy (push) Successful in 12s
2023-07-27 17:32:57 +02:00
tom.coursow a4d16b3fb0 .gitea/actions/cached-deps-js/action.yml gelöscht
Deployment / lint (push) Successful in 1m8s
Deployment / test (push) Successful in 1m0s
Deployment / build (push) Successful in 1m4s
Deployment / deploy (push) Successful in 12s
2023-07-27 17:29:40 +02:00
tom.coursow 605b504f86 .gitea/workflows/deploy.yml aktualisiert
Deployment / lint (push) Successful in 1m5s
Deployment / test (push) Successful in 1m5s
Deployment / build (push) Successful in 1m8s
Deployment / deploy (push) Successful in 12s
2023-07-27 16:40:12 +02:00
3 changed files with 24 additions and 28 deletions
-24
View File
@@ -1,24 +0,0 @@
name: 'Get & Cache Dependencies'
description: 'Get the Dependencies from the cache for a (npm) Node JS Project or initialize the cache for it'
runs:
using: 'composite' # Must be 'composite' for a custom composite action
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.20'
- uses: actions/go-hashfiles@v0.0.1
id: get-cache-hash
with:
patterns: |-
**/package-lock.json
- name: Cache dependencies
id: cache
uses: actions/cache@v3
with:
path: node_modules
key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
shell: bash # compared to workflow ymls... Action ymls require the 'shell' property when a 'run' property was used!
+5 -3
View File
@@ -10,7 +10,9 @@ jobs:
- name: Get code
uses: actions/checkout@v3
- name: Run our own Custom Composite Cached Node JS Deps Action
uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite
uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite@master
with:
caching: 'false' # Override the default 'caching' input value from the action.yml file for this step
- name: Lint code
run: npm run lint
test:
@@ -19,7 +21,7 @@ jobs:
- name: Get code
uses: actions/checkout@v3
- name: Run our own Custom Composite Cached Node JS Deps Action
uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite
uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite@master
- name: Test code
id: run-tests
run: npm run test
@@ -36,7 +38,7 @@ jobs:
- name: Get code
uses: actions/checkout@v3
- name: Run our own Custom Composite Cached Node JS Deps Action
uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite
uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite@master
- name: Build website
run: npm run build
- name: Package Artifacts
+19 -1
View File
@@ -1,24 +1,42 @@
#
# To be able to use this action (with Gitea and Act Runner),
# this action.yml file has to be placed in the root of the repository.
# It is also important that a Git TAG is created (for example 'v1')
# Then workflows can use this action like this:
# 'using: https://gitea.coursow.de/Test-Playground/actions-custom-composite@v1'
#
# Name and Description of the Action (Like displayed in GitHub Marketplace Overview)
name: 'Get & Cache Dependencies'
description: 'Get the Dependencies from the cache for a (npm) Node JS Project or initialize the cache for it'
inputs:
caching:
description: 'If the cache should be used or not'
required: false
default: 'true'
runs:
using: 'composite' # Must be 'composite' for a custom composite action
steps:
- uses: actions/setup-go@v3
if: inputs.caching == 'true' # Using inputs from inputs section above...
with:
go-version: '1.20'
- uses: actions/go-hashfiles@v0.0.1
id: get-cache-hash
if: inputs.caching == 'true'
with:
patterns: |-
**/package-lock.json
- name: Cache dependencies
id: cache
if: inputs.caching == 'true'
uses: actions/cache@v3
with:
path: node_modules
key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
if: steps.cache.outputs.cache-hit != 'true' || inputs.caching != 'true'
run: npm ci
shell: bash # compared to workflow ymls... Action ymls require the 'shell' property when a 'run' property was used!