12 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
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 41 additions and 36 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!
+9 -3
View File
@@ -1,5 +1,6 @@
name: Deployment name: Deployment
on: on:
workflow_dispatch:
push: push:
branches: branches:
- master - master
@@ -10,7 +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
uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite id: custom
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: 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:
@@ -19,7 +25,7 @@ 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
uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite@master
- name: Test code - name: Test code
id: run-tests id: run-tests
run: npm run test run: npm run test
@@ -36,7 +42,7 @@ 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
uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite uses: https://gitea.coursow.de/Test-Playground/actions-custom-composite@master
- name: Build website - name: Build website
run: npm run build run: npm run build
- name: Package Artifacts - name: Package Artifacts
+31 -8
View File
@@ -1,24 +1,47 @@
#
# 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' 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:
caching:
description: 'If the cache should be used or not'
required: false
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
with:
go-version: '1.20'
- uses: actions/go-hashfiles@v0.0.1
id: get-cache-hash id: get-cache-hash
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'
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
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
if: steps.cache.outputs.cache-hit != 'true' id: install
run: npm ci if: steps.cache.outputs.cache-hit != 'true' || inputs.caching != 'true'
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!