Skip to content

Commit

Permalink
ci: Add GitHub Action for PR-level testing (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
iampearlep authored Oct 8, 2024
1 parent 8b1466c commit 79d9b92
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PR check

on:
pull_request:
branches:
- master

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: yarn install

- name: Run linter
run: yarn lint

- name: Run type check
run: yarn typecheck

- name: Run build
run: yarn build
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default [

parser: tsParser,
},

rules: {
'react-refresh/only-export-components': [
'warn',
Expand Down

0 comments on commit 79d9b92

Please sign in to comment.