Skip to content
Open
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'