Skip to content

Workflow caches warmup #5

Workflow caches warmup

Workflow caches warmup #5

Workflow file for this run

name: Workflow caches warmup
on:
workflow_dispatch:
inputs:
reason:
description: The reason for dispatching it manually.
type: string
default: manual healthcheck
required: true
workflow_run:
workflows: [ Workflow caches cleanup ]
types: [ completed ]
jobs:
deps:
name: Caching deps
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with: { fetch-depth: 0 }
- name: Set up Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: package-lock.json
check-latest: true
- name: Install dependencies
run: ./Taskfile npm ci
env:
FONTAWESOME_TOKEN: ${{ secrets.FONTAWESOME_TOKEN }}
tools:
name: Caching tools
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with: { fetch-depth: 0 }
- name: Set up Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: tools/package-lock.json
check-latest: true
- name: Install dependencies
run: ./Taskfile tools npm ci
notify:
name: Notifying
needs: [ deps, tools ]
runs-on: ubuntu-latest
if: failure() || success()
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with: { fetch-depth: 0 }
- name: Send notification
uses: ./.github/actions/notify
continue-on-error: true
with:
emoji: ♻️
channel: ${{ secrets.SLACK_WEBHOOK }}
success: ${{ ! contains(needs.*.result, 'failure') }}