Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autofix.ci to CI workflow #46

Merged
merged 11 commits into from
Jun 24, 2024
Merged
30 changes: 30 additions & 0 deletions .github/workflows/autofix-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: autofix.ci
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- master
permissions:
contents: read

jobs:
prettier:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up node and cache packages
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install npm packages
run: npm ci
- name: Run prettier
run: npx prettier . --write
- name: Commit changes
uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,6 @@ on:
- master

jobs:
prettier:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up node and cache packages
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install npm packages
run: npm ci
- name: Run prettier
run: npx prettier . --write
# - name: Commit changes
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: Apply formatting changes
# branch: ${{ github.head_ref }}
jest:
if: github.event.pull_request.draft == false
runs-on: ubuntu-22.04
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Removed unused imports in `demo_C.js`.
- Added type interfaces and type annotations to `style.ts`.
- Added `DrawnEntity` type annotations to source code files.
- Added `autofix.ci` to the CI workflow.

## [0.1.0] - 2024-04-16

Expand Down
Loading