Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit 4bfc7af

Browse files
ci: set up CI
1 parent 417684c commit 4bfc7af

File tree

4 files changed

+93
-17
lines changed

4 files changed

+93
-17
lines changed

.github/workflows/actionlint.yaml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1+
---
12
name: actionlint
2-
33
on:
4-
pull_request:
5-
branches:
6-
- main
7-
paths:
8-
- .github/**
9-
- aqua/actionlint.yaml
104
push:
11-
branches:
12-
- main
13-
paths:
14-
- .github/**
15-
- aqua/actionlint.yaml
16-
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
178
jobs:
18-
test:
9+
default:
1910
runs-on: ubuntu-latest
2011
steps:
21-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
2213
- uses: aquaproj/[email protected]
2314
with:
2415
aqua_version: v1.19.2

.github/workflows/renovate-config-validator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jobs:
1818
validate:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222
- uses: suzuki-shunsuke/[email protected]

.github/workflows/test.yaml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: test
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: normal
15+
uses: ./
16+
with:
17+
github_token: ${{github.token}}
18+
env:
19+
# https://github.com/gha-trigger/commit-status-action/commit/ac0a3b503e810cd8b154e85921c68c2e232012af
20+
GHA_REPOSITORY_OWNER: gha-trigger
21+
GHA_REPOSITORY_NAME: commit-status-action
22+
GHA_COMMIT_STATUS_SHA: ac0a3b503e810cd8b154e85921c68c2e232012af
23+
24+
- name: workflow start
25+
# https://github.com/gha-trigger/commit-status-action/commit/b8f82e799e56a9fd26068350cc0e919139454b24
26+
uses: ./
27+
with:
28+
github_token: ${{github.token}}
29+
start_workflow: true
30+
env:
31+
GHA_REPOSITORY_OWNER: gha-trigger
32+
GHA_REPOSITORY_NAME: commit-status-action
33+
GHA_COMMIT_STATUS_SHA: b8f82e799e56a9fd26068350cc0e919139454b24
34+
GHA_WORKFLOW_COMMIT_STATUS: "true"
35+
36+
- name: workflow skip
37+
# https://github.com/gha-trigger/commit-status-action/commit/873f3e646708b88a17982adde41f5d3becde0e74
38+
uses: ./
39+
with:
40+
github_token: ${{github.token}}
41+
env:
42+
GHA_REPOSITORY_OWNER: gha-trigger
43+
GHA_REPOSITORY_NAME: commit-status-action
44+
GHA_COMMIT_STATUS_SHA: 873f3e646708b88a17982adde41f5d3becde0e74
45+
GHA_WORKFLOW_COMMIT_STATUS: "true"
46+
47+
- name: workflow end (failure)
48+
# https://github.com/gha-trigger/commit-status-action/commit/ec3d99fd7984c4abe29f5dc7da4dac6d95444878
49+
uses: ./
50+
with:
51+
github_token: ${{github.token}}
52+
needs: |
53+
{
54+
"build": {
55+
"result": "success"
56+
},
57+
"deploy": {
58+
"result": "failure"
59+
}
60+
}
61+
env:
62+
GHA_REPOSITORY_OWNER: gha-trigger
63+
GHA_REPOSITORY_NAME: commit-status-action
64+
GHA_COMMIT_STATUS_SHA: ec3d99fd7984c4abe29f5dc7da4dac6d95444878
65+
GHA_WORKFLOW_COMMIT_STATUS: "true"
66+
67+
- name: workflow end (success)
68+
# https://github.com/gha-trigger/commit-status-action/commit/09f6d6cd3ef4d43b4f372badb89a47ab741ec9ca
69+
uses: ./
70+
with:
71+
github_token: ${{github.token}}
72+
needs: |
73+
{
74+
"build": {
75+
"result": "success"
76+
},
77+
"deploy": {
78+
"result": "success"
79+
}
80+
}
81+
env:
82+
GHA_REPOSITORY_OWNER: gha-trigger
83+
GHA_REPOSITORY_NAME: commit-status-action
84+
GHA_COMMIT_STATUS_SHA: ec3d99fd7984c4abe29f5dc7da4dac6d95444878
85+
GHA_WORKFLOW_COMMIT_STATUS: "true"

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
dist/index.js
2-
README.md
2+
*.md

0 commit comments

Comments
 (0)