forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (35 loc) · 751 Bytes
/
Copy pathtest.yml
File metadata and controls
44 lines (35 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test
permissions:
contents: write
on:
workflow_dispatch:
workflow_call:
jobs:
test-cache:
runs-on: ubuntu-latest
#runs-on: self-hosted
container:
image: ubuntu:latest
options: --user root
steps:
- name: Create test file
run: touch /tmp/1.test
- name: Save Cache
uses: actions/cache/save@v3
with:
path: |
/tmp/
key: testcache1
- name: Clear test file
run: rm /tmp/1.test
- name: List /tmp/
run: ls -laR /tmp/
- name: Restore Cached Debs
id: cache-debs-restore
uses: actions/cache/restore@v3
with:
path: |
/tmp/
key: testcache1
- name: List /tmp/ Again
run: ls -laR /tmp/