Skip to content

Commit

Permalink
refactor: upgraded tooling for autodev repo
Browse files Browse the repository at this point in the history
  • Loading branch information
1uweb committed Jul 1, 2024
1 parent ab24376 commit c18a4f8
Show file tree
Hide file tree
Showing 25 changed files with 12,498 additions and 20,921 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

81 changes: 0 additions & 81 deletions .eslintrc.json

This file was deleted.

15 changes: 9 additions & 6 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:
branches:
- main
paths-ignore:
- '**.md'
- "**.md"
pull_request:
paths-ignore:
- '**.md'
- "**.md"
workflow_dispatch:

jobs:
Expand All @@ -23,17 +23,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile --ignore-scripts

- name: Rebuild the dist/ directory
run: npm run build
run: pnpm run build

- name: Compare the expected and actual dist/ directories
run: |
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
pull_request:
push:
branches:
- 'main'
- 'releases/*'
- "main"
- "releases/*"

jobs:
build:
Expand All @@ -15,17 +15,20 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install Dependencies
run: npm install
run: pnpm install

- name: Build Action
run: npm run all
run: pnpm run all

test:
name: Test
Expand Down
10 changes: 0 additions & 10 deletions .prettierrc.json

This file was deleted.

56 changes: 28 additions & 28 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
name: 'AutoDev action'
description: 'Tries to merge all Pull Requests with a specific label to a certain branch.'
name: "AutoDev action"
description: "Tries to merge all Pull Requests with a specific label to a certain branch."
branding:
icon: 'git-merge'
color: 'blue'
icon: "git-merge"
color: "blue"
runs:
using: 'node20'
main: 'dist/index.js'
using: "node20"
main: "dist/index.js"
inputs:
token:
required: true
description: GitHub token of the user that fetches the pull requests
base:
required: false
default: 'main'
description: 'This is the base branch. The merge history originates from this branch.'
default: "main"
description: "This is the base branch. The merge history originates from this branch."
label:
required: false
default: 'dev'
description: 'The label where the action will be triggered.'
default: "dev"
description: "The label where the action will be triggered."
branch:
required: false
default: 'dev'
description: 'The branch the action will merge the Pull Requests to.'
default: "dev"
description: "The branch the action will merge the Pull Requests to."
comments:
required: false
default: 'false'
description: 'If true, the action creates a comment on each PR to inform about the status of the dev branch'
default: "false"
description: "If true, the action creates a comment on each PR to inform about the status of the dev branch"
success_comment:
required: false
description: 'Comment string that will be shown in the Pull request on success.'
default: ''
description: "Comment string that will be shown in the Pull request on success."
default: ""
failure_comment:
required: false
description: 'Comment string that will be shown in the Pull request on failure.'
default: ''
description: "Comment string that will be shown in the Pull request on failure."
default: ""
labels:
required: false
default: 'false'
description: 'If true, the action uses labels on each PR to inform about the status of the dev branch.'
default: "false"
description: "If true, the action uses labels on each PR to inform about the status of the dev branch."
success_label:
required: false
description: 'Label string that will be add on the Pull request on success.'
default: 'successful'
description: "Label string that will be add on the Pull request on success."
default: "successful"
failure_label:
required: false
description: 'Label string that will be add on the Pull request on failure.'
default: 'failed'
description: "Label string that will be add on the Pull request on failure."
default: "failed"
user:
required: false
default: 'AutoDev Action'
description: 'Name of the user which does the git commit.'
default: "AutoDev Action"
description: "Name of the user which does the git commit."
email:
required: false
default: '[email protected]'
description: 'E-Mail of the user which does the git commit.'
default: "[email protected]"
description: "E-Mail of the user which does the git commit."
Loading

0 comments on commit c18a4f8

Please sign in to comment.