Skip to content

Commit

Permalink
Create code check workflow (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 authored Feb 28, 2023
1 parent 9aae7d4 commit 9f483c4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Code check

on:
push:
branches:
- main
paths-ignore: ["*.md", "examples/**"]
pull_request:
branches:
- main
paths-ignore: ["*.md", "examples/**"]

jobs:
code_check:
runs-on: ubuntu-latest
steps:
- name: Check out to repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run ESLint
run: yarn lint

- name: Run Jest tests
run: yarn test

0 comments on commit 9f483c4

Please sign in to comment.