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

Commit

Permalink
ci: set up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Sep 22, 2022
1 parent cf8db31 commit 4a77ccd
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/actionlint.yaml
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
14 changes: 14 additions & 0 deletions .github/workflows/prettier.yaml
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 .
22 changes: 22 additions & 0 deletions .github/workflows/renovate-config-validator.yaml
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
45 changes: 45 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: test

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
test:
if: github.actor == 'suzuki-shunsuke'
runs-on: ubuntu-latest
steps:
- uses: ./
with:
app_id: ${{secrets.APP_ID}}
app_private_key: ${{secrets.APP_PRIVATE_KEY}}
data: |
{
"event": {
"number": 2,
"sender": {
"login": "suzuki-shunsuke"
},
"repository": {
"full_name": "gha-trigger/example-main",
"name": "example-main",
"owner": {
"login": "gha-trigger"
}
}
},
"event_name": "pull_request",
"pull_request": {
"merge_commit_sha": "361ceaafea1703b92f7710f8c3fd300b1b96a110",
"base": {
"ref": "main"
},
"head": {
"sha": "361ceaafea1703b92f7710f8c3fd300b1b96a110",
"ref": "test-pr"
},
"html_url": "https://github.com/gha-trigger/example-main/pull/2"
}
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.md
8 changes: 8 additions & 0 deletions aqua.yaml
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

0 comments on commit 4a77ccd

Please sign in to comment.