This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from gha-trigger/ci/setup
ci: set up CI
- Loading branch information
Showing
8 changed files
with
288 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: actionlint | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
default: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: aquaproj/aqua-installer@v1.1.2 | ||
with: | ||
aqua_version: v1.19.2 | ||
- run: actionlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: prettier | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: npm i -g prettier | ||
- run: prettier -c . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: renovate-config-validator | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/renovate-config-validator.yaml | ||
- renovate.json | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/renovate-config-validator.yaml | ||
- renovate.json | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
name: test | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
test-pull-request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./ | ||
with: | ||
data: | | ||
{ | ||
"event_name": "pull_request", | ||
"event": { | ||
"number": 149, | ||
"sender": { | ||
"login": "suzuki-shunsuke" | ||
}, | ||
"repository": { | ||
"full_name": "gha-trigger/gha-trigger", | ||
"name": "gha-trigger", | ||
"owner": { | ||
"login": "gha-trigger" | ||
} | ||
}, | ||
"pull_request": { | ||
"merge_commit_sha": "4528ea7ab7a8eef7e596097934a78eab90fb8b33", | ||
"base": { | ||
"ref": "main" | ||
}, | ||
"head": { | ||
"sha": "b6d8f3331c6845997b9408163a127e01fd32c120", | ||
"ref": "renovate/github.com-aws-aws-sdk-go-1.x" | ||
}, | ||
"html_url": "https://github.com/gha-trigger/step-summary-action/pull/9" | ||
} | ||
} | ||
} | ||
- name: Test GHA_ACTOR | ||
run: | | ||
[ "$GHA_ACTOR" = suzuki-shunsuke ] | ||
- name: Test GHA_EVENT_NAME | ||
run: | | ||
[ "$GHA_EVENT_NAME" = pull_request ] | ||
- name: Test GHA_REPOSITORY | ||
run: | | ||
[ "$GHA_REPOSITORY" = gha-trigger/gha-trigger ] | ||
- name: Test GHA_REPOSITORY_OWNER | ||
run: | | ||
[ "$GHA_REPOSITORY_OWNER" = gha-trigger ] | ||
- name: Test GHA_REPOSITORY_NAME | ||
run: | | ||
[ "$GHA_REPOSITORY_NAME" = gha-trigger ] | ||
- name: Test GHA_SHA | ||
run: | | ||
[ "$GHA_SHA" = 4528ea7ab7a8eef7e596097934a78eab90fb8b33 ] | ||
- name: Test GHA_COMMIT_STATUS_SHA | ||
run: | | ||
[ "$GHA_COMMIT_STATUS_SHA" = b6d8f3331c6845997b9408163a127e01fd32c120 ] | ||
- name: Test GHA_BASE_REF | ||
run: | | ||
[ "$GHA_BASE_REF" = main ] | ||
- name: Test GHA_HEAD_SHA | ||
run: | | ||
[ "$GHA_HEAD_SHA" = b6d8f3331c6845997b9408163a127e01fd32c120 ] | ||
- name: Test GHA_REF | ||
run: | | ||
[ "$GHA_REF" = refs/pull/149/merge ] | ||
- name: Test GHA_REF_NAME | ||
run: | | ||
[ "$GHA_REF_NAME" = 149/merge ] | ||
- name: Test GHA_PULL_REQUEST_NUMBER | ||
run: | | ||
[ "$GHA_PULL_REQUEST_NUMBER" = 149 ] | ||
- name: Test GHA_ENV | ||
run: | | ||
[ -n "$GHA_ENV" ] | ||
test-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./ | ||
with: | ||
data: | | ||
{ | ||
"event_name": "push", | ||
"event": { | ||
"ref": "refs/heads/renovate/github.com-aws-aws-sdk-go-1.x", | ||
"sender": { | ||
"login": "suzuki-shunsuke" | ||
}, | ||
"head_commit": { | ||
"id": "a705bd6d8bc3882c983477cb3f20ab74ef8c24c2" | ||
}, | ||
"repository": { | ||
"full_name": "gha-trigger/gha-trigger", | ||
"name": "gha-trigger", | ||
"owner": { | ||
"login": "gha-trigger" | ||
} | ||
} | ||
} | ||
} | ||
- name: Test GHA_ACTOR | ||
run: | | ||
[ "$GHA_ACTOR" = suzuki-shunsuke ] | ||
- name: Test GHA_EVENT_NAME | ||
run: | | ||
[ "$GHA_EVENT_NAME" = push ] | ||
- name: Test GHA_REPOSITORY | ||
run: | | ||
[ "$GHA_REPOSITORY" = gha-trigger/gha-trigger ] | ||
- name: Test GHA_REPOSITORY_OWNER | ||
run: | | ||
[ "$GHA_REPOSITORY_OWNER" = gha-trigger ] | ||
- name: Test GHA_REPOSITORY_NAME | ||
run: | | ||
[ "$GHA_REPOSITORY_NAME" = gha-trigger ] | ||
- name: Test GHA_SHA | ||
run: | | ||
[ "$GHA_SHA" = a705bd6d8bc3882c983477cb3f20ab74ef8c24c2 ] | ||
- name: Test GHA_COMMIT_STATUS_SHA | ||
run: | | ||
[ "$GHA_COMMIT_STATUS_SHA" = a705bd6d8bc3882c983477cb3f20ab74ef8c24c2 ] | ||
- name: Test GHA_REF | ||
run: | | ||
[ "$GHA_REF" = refs/heads/renovate/github.com-aws-aws-sdk-go-1.x ] | ||
- name: Test GHA_REF_NAME | ||
run: | | ||
[ "$GHA_REF_NAME" = renovate/github.com-aws-aws-sdk-go-1.x ] | ||
- name: Test GHA_ENV | ||
run: | | ||
[ -n "$GHA_ENV" ] | ||
test-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./ | ||
with: | ||
data: | | ||
{ | ||
"event_name": "release", | ||
"event": { | ||
"sender": { | ||
"login": "suzuki-shunsuke" | ||
}, | ||
"release": { | ||
"tag_name": "v0.1.0" | ||
}, | ||
"repository": { | ||
"full_name": "gha-trigger/gha-trigger", | ||
"name": "gha-trigger", | ||
"owner": { | ||
"login": "gha-trigger" | ||
} | ||
} | ||
} | ||
} | ||
- name: Test GHA_ACTOR | ||
run: | | ||
[ "$GHA_ACTOR" = suzuki-shunsuke ] | ||
- name: Test GHA_EVENT_NAME | ||
run: | | ||
[ "$GHA_EVENT_NAME" = release ] | ||
- name: Test GHA_REPOSITORY | ||
run: | | ||
[ "$GHA_REPOSITORY" = gha-trigger/gha-trigger ] | ||
- name: Test GHA_REPOSITORY_OWNER | ||
run: | | ||
[ "$GHA_REPOSITORY_OWNER" = gha-trigger ] | ||
- name: Test GHA_REPOSITORY_NAME | ||
run: | | ||
[ "$GHA_REPOSITORY_NAME" = gha-trigger ] | ||
- name: Test GHA_SHA | ||
run: | | ||
[ "$GHA_SHA" = "" ] | ||
- name: Test GHA_REF | ||
run: | | ||
[ "$GHA_REF" = v0.1.0 ] | ||
- name: Test GHA_REF_NAME | ||
run: | | ||
[ "$GHA_REF_NAME" = v0.1.0 ] | ||
- name: Test GHA_ENV | ||
run: | | ||
[ -n "$GHA_ENV" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
# aqua - Declarative CLI Version Manager | ||
# https://aquaproj.github.io/ | ||
registries: | ||
- type: standard | ||
ref: v3.58.0 # renovate: depName=aquaproj/aqua-registry | ||
packages: | ||
- name: rhysd/actionlint@v1.6.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": [ | ||
"config:base", | ||
"github>suzuki-shunsuke/renovate-config", | ||
"github>aquaproj/aqua-renovate-config#1.2.5" | ||
], | ||
"packageRules": [ | ||
{ | ||
"matchUpdateTypes": ["digest"], | ||
"enabled": false | ||
} | ||
] | ||
} |