Skip to content

Commit

Permalink
feat(ci): add code check action (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
puppet-666 authored Mar 23, 2023
1 parent 1262d12 commit 96e762b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: code check

permissions:
contents: read
pull-requests: write

on:
pull_request:
types: [opened, reopened]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# This is a basic workflow to help you get started with Actions
name: deploy
name: ci

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
- main
Expand All @@ -20,13 +17,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install & Build # 執行指令
- name: Install & Build
run: |
npm i -g pnpm
pnpm install
pnpm run build
# Runs a single command using the runners shell
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"config:base"
],
"prConcurrentLimit": 3,
"baseBranches": ["dev"],
"baseBranches": ["main"],
"packageRules": [
{
"groupName": "all non-major dependencies",
Expand Down

0 comments on commit 96e762b

Please sign in to comment.