Skip to content

Commit

Permalink
chore: add pr-check.yml github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed Sep 3, 2024
1 parent 4ac4011 commit ee1f961
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# These are supported funding model platforms

github: [gabriel-logan] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: gabriellogan
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
33 changes: 33 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Pull Request Check

on:
push:
branches: [main]

pull_request:
branches: [main]

workflow_dispatch:

jobs:
checking-pr:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"

- name: Install dependencies
run: yarn install

- name: Run prettier
run: yarn prettier

- name: Run lint
run: yarn lint

- name: Run test
run: yarn test:verbose:coverage

0 comments on commit ee1f961

Please sign in to comment.