feat: add GitHub Actions workflows for code quality and automation (#2)

This commit is contained in:
2025-02-02 00:42:19 +02:00
committed by GitHub
parent af6ecdf6ca
commit 210aa969b3
105 changed files with 8807 additions and 408 deletions

17
eslint-fix/README.md Normal file
View File

@@ -0,0 +1,17 @@
# ivuorinen/actions/eslint-fix
## ESLint Fix
### Description
Fixes ESLint violations in a project.
### Runs
This action is a `composite` action.
### Usage
```yaml
- uses: ivuorinen/actions/eslint-fix@main
```

38
eslint-fix/action.yml Normal file
View File

@@ -0,0 +1,38 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
name: ESLint Fix
description: Fixes ESLint violations in a project.
author: 'Ismo Vuorinen'
branding:
icon: 'code'
color: 'blue'
runs:
using: composite
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Git Config
uses: ivuorinen/actions/set-git-config@main
- name: Node Setup
uses: ivuorinen/actions/node-setup@main
- name: Install Dependencies
shell: bash
run: |
npm install
- name: Run ESLint Fix
shell: bash
run: |
npx eslint . --fix
- name: Push Fixes
if: always()
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'style: autofix ESLint violations'
add_options: '-u'