Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eslint action #15

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
pull_request:
types: [opened, edited, reopened, synchronize]
paths: # make sure this action only runs when specific file extensions have been added/modified
- '**.js'
- '**.jsx'

jobs:
test_job:
runs-on: ubuntu-latest
name: A job to test eslint-changeset action
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- run: |
git fetch --no-tags --depth=1 origin main
git checkout main
git checkout ${{ github.head_ref }}
- name: Eslint Changeset Step
uses: esrimo/gh-action-eslint-changeset@v1
id: eslint-changeset
with:
main-branch: 'dev'
file-extension: 'js|jsx|ts|tsx|vue'