Skip to content

Commit

Permalink
add pr workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed Nov 24, 2023
1 parent fcace63 commit eca5a19
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: On PR

on:
pull_request:

jobs:
typical-workflow:
name: Lint, format, test and build
uses: bjerkio/workflows/.github/workflows/pnpm-typical.yml@v2

formatting:
name: Lint, format
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2

- name: Use Node LTS ✨
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: Install dependencies 📦️
run: pnpm install --frozen-lockfile

- name: Run formatter 💅
run: pnpm format

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply formatting changes
branch: ${{ github.head_ref }}

0 comments on commit eca5a19

Please sign in to comment.