This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (62 loc) · 1.75 KB
/
actions-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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
## Test custom actions in .github/actions/
name: actions-test
on:
push:
branches:
- main
paths:
- '.github/actions/**'
pull_request:
branches:
- main
paths:
- '.github/actions/**'
permissions:
contents: read
jobs:
docker-layer-caching:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/docker-layer-caching
with:
key: custom-docker-cache-key-${{ github.workflow }}-{hash}
restore-keys: |
custom-docker-cache-key-${{ github.workflow }}-
# Random Dockerfile from .ci/docker
- run: docker build -t yamllint -f .ci/docker/yamllint/Dockerfile .
setup-git-with-token:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-git
with:
token: ${{ github.token }}
- name: Check GIT_USER
run: test "$GIT_USER" = "obltmachine"
- name: Check GIT_EMAIL
run: test "$GIT_EMAIL" = "150269514+obltmachine@users.noreply.github.com"
setup-git-without-token:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-git
- name: Check GIT_USER
run: test "$GIT_USER" = "obltmachine"
- name: Check GIT_EMAIL
run: test "$GIT_EMAIL" = "150269514+obltmachine@users.noreply.github.com"
combined-status:
if: always()
runs-on: ubuntu-latest
needs:
- docker-layer-caching
- setup-git-with-token
- setup-git-without-token
steps:
- uses: actions/checkout@v4
- id: check
uses: ./.github/actions/check-dependent-jobs
with:
needs: ${{ toJSON(needs) }}
- run: ${{ steps.check.outputs.isSuccess }}