25 lines
589 B
YAML
25 lines
589 B
YAML
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
container:
|
|
image: code.forgejo.org/oci/node:20-bookworm
|
|
steps:
|
|
- name: cache restore
|
|
id: cachestep
|
|
uses: https://data.forgejo.org/actions/cache/restore@v4
|
|
with:
|
|
path: |
|
|
/usr/local/bin/something
|
|
key: thecoolsecretcachekey
|
|
|
|
- name: verify something
|
|
run: |
|
|
set -x
|
|
test SOMETHING = $(cat /usr/local/bin/something)
|
|
|
|
- name: cache hit
|
|
run: |
|
|
set -x
|
|
test "${{ steps.cachestep.outputs.cache-hit }}" = true
|