diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..a6acacca --- /dev/null +++ b/.github/workflows/main.yml @@ -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'