mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
* chore: switch to yarn * chore: pointless limitation permalink: http://whatthecommit.com/468a491808723d12de48b079d9092b44 * chore: i can't believe it took so long to fix this. permalink: http://whatthecommit.com/b298fe6d3375ab953abfdb0f1f737826
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: Continuous Integration
|
|
|
|
on:
|
|
# Trigger the workflow on push or pull request or custom
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '*.ts'
|
|
pull_request_target:
|
|
branches:
|
|
main
|
|
paths:
|
|
- '*ts'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Prettier:
|
|
name: Run Prettier
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
|
|
with:
|
|
node-version: 17
|
|
|
|
- name: Install pnpm
|
|
run: npm i -g yarn
|
|
|
|
# Prettier must be in `package.json`
|
|
- name: Install Node.js dependencies
|
|
run: yarn --immutable
|
|
|
|
- name: Run Prettier
|
|
run: yarn pretty
|
|
|
|
- name: Create Pull Request
|
|
id: cpr
|
|
uses: peter-evans/create-pull-request@v4
|
|
with:
|
|
commit-message: "style: pretty please"
|
|
branch: prettier
|
|
delete-branch: true
|
|
branch-suffix: short-commit-hash
|
|
title: "style: pretty please"
|
|
body: "pretty pretty prettier"
|
|
reviewers: EvolutionX-10
|