diff --git a/.eslintignore b/.eslintignore index 11c9409..bac51cb 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,4 +2,5 @@ .nyc_output/ coverage/ dist/ -node_modules/ \ No newline at end of file +node_modules/ +.github/ \ No newline at end of file diff --git a/.github/workflows/lint_test_format.yaml b/.github/workflows/lint_test_format.yaml new file mode 100644 index 0000000..ba56fd2 --- /dev/null +++ b/.github/workflows/lint_test_format.yaml @@ -0,0 +1,24 @@ +name: lint_test_format +on: + - workflow_dispatch: {} +jobs: + lint: + name: lint + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + steps: + - name: Check out repository + - uses: actions/checkout@v3 + + - name: Setup node ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm ci + + - name: Run lint-fix + run: npm run lint-fix diff --git a/.prettierignore b/.prettierignore index e5b4a81..8c22d12 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,5 @@ ./dist ./nyc_output ./coverage -./node_modules \ No newline at end of file +./node_modules +./.github \ No newline at end of file