-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.03 KB
/
test.yml
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
45
name: Test composite action
on:
pull_request:
paths:
- 'action.yml'
workflow_dispatch:
jobs:
test-composite-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test action
uses: ./
with:
cache: 'true'
release: '6.0.0'
- name: Check that a fake module can be built
working-directory: .github/workflows
run: make
test-composite-action-cached:
runs-on: ubuntu-latest
needs: test-composite-action
steps:
- uses: actions/checkout@v4
- name: Test that kernel sources are cached
uses: actions/cache@v4
with:
path: |
/usr/src/linux
key: ${{ runner.os }}-${{ runner.arch }}-6.0.0
- name: Fully restore through action
uses: ./
with:
cache: 'true'
release: '6.0.0'
- name: Check that a fake module can be built again
working-directory: .github/workflows
run: make