6 Commits

Author SHA1 Message Date
tom.coursow b89a3bcda5 .gitea/workflows/deploy.yml aktualisiert
Deployment / lint (push) Successful in 41s
Deployment / test (push) Successful in 1m4s
Deployment / build (push) Successful in 22s
Deployment / deploy (push) Successful in 7s
2026-05-08 23:17:12 +02:00
tom.coursow 61f5f4ef43 action.yml aktualisiert
Deployment / lint (push) Successful in 26s
Deployment / test (push) Successful in 35s
Deployment / build (push) Successful in 19s
Deployment / deploy (push) Successful in 8s
2023-07-28 22:31:47 +02:00
tom.coursow d04cdab04b README.md aktualisiert
Deployment / lint (push) Failing after 51s
Deployment / test (push) Failing after 48s
Deployment / build (push) Has been skipped
Deployment / deploy (push) Has been skipped
2023-07-28 20:35:25 +02:00
tom.coursow 179e15ae5f README.md aktualisiert
Deployment / lint (push) Failing after 52s
Deployment / test (push) Failing after 46s
Deployment / build (push) Has been skipped
Deployment / deploy (push) Has been skipped
2023-07-28 20:15:35 +02:00
tom.coursow 01fcbce3a9 .gitea/workflows/deploy.yml aktualisiert
Deployment / lint (push) Successful in 29s
Deployment / test (push) Successful in 1m2s
Deployment / build (push) Successful in 1m8s
Deployment / deploy (push) Successful in 12s
2023-07-27 19:21:30 +02:00
tom.coursow c5fe1e8810 action.yml aktualisiert
Deployment / lint (push) Successful in 28s
Deployment / test (push) Successful in 59s
Deployment / build (push) Successful in 1m2s
Deployment / deploy (push) Successful in 11s
2023-07-27 19:19:48 +02:00
2 changed files with 18 additions and 9 deletions
+4
View File
@@ -1,5 +1,6 @@
name: Deployment name: Deployment
on: on:
workflow_dispatch:
push: push:
branches: branches:
- master - master
@@ -10,9 +11,12 @@ jobs:
- name: Get code - name: Get code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Run our own Custom Composite Cached Node JS Deps Action - name: Run our own Custom Composite Cached Node JS Deps Action
id: custom
uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite@master uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite@master
with: with:
caching: 'false' # Override the default 'caching' input value from the action.yml file for this step caching: 'false' # Override the default 'caching' input value from the action.yml file for this step
- name: Check Custom Action output
run: echo "Used cache? --> ${{ steps.custom.outputs.cache-hit }}"
- name: Lint code - name: Lint code
run: npm run lint run: npm run lint
test: test:
+14 -9
View File
@@ -10,25 +10,27 @@
name: 'Get & Cache Dependencies' name: 'Get & Cache Dependencies'
description: 'Get the Dependencies from the cache for a (npm) Node JS Project or initialize the cache for it' description: 'Get the Dependencies from the cache for a (npm) Node JS Project or initialize the cache for it'
# Inputs can be given with the 'with:' key later when using the custom action
inputs: inputs:
caching: caching:
description: 'If the cache should be used or not' description: 'If the cache should be used or not'
required: false required: false
default: 'true' default: 'true'
outputs:
cache-hit:
description: 'Provides information if the cache was used during the action execution (true) or not (false)'
value: ${{ steps.install.outputs.cache-hit }}
runs: runs:
using: 'composite' # Must be 'composite' for a custom composite action using: 'composite' # Must be 'composite' for a custom composite action
steps: steps:
- uses: actions/setup-go@v3 - uses: KEINOS/gh-action-hash-for-cache@v2.0.0-alpha
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 id: get-cache-hash
if: inputs.caching == 'true' if: inputs.caching == 'true'
with: with:
patterns: |- path: |
**/package-lock.json package-lock.json
- name: Cache dependencies - name: Cache dependencies
id: cache id: cache
if: inputs.caching == 'true' if: inputs.caching == 'true'
@@ -37,6 +39,9 @@ runs:
path: node_modules path: node_modules
key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }} key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}
- name: Install dependencies - name: Install dependencies
id: install
if: steps.cache.outputs.cache-hit != 'true' || inputs.caching != 'true' if: steps.cache.outputs.cache-hit != 'true' || inputs.caching != 'true'
run: npm ci run: |
npm ci
echo "cache-hit='true'" >> $GITHUB_OUTPUT
shell: bash # compared to workflow ymls... Action ymls require the 'shell' property when a 'run' property was used! shell: bash # compared to workflow ymls... Action ymls require the 'shell' property when a 'run' property was used!