From dd16c4ecf0fdeef3da050d4f457f5cc6ff0fe09f Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Mon, 20 Feb 2023 09:51:35 -0600 Subject: [PATCH] feat: begin working on lint_test_format workflow --- .eslintignore | 3 ++- .github/workflows/lint_test_format.yaml | 24 ++++++++++++++++++++++++ .prettierignore | 3 ++- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/lint_test_format.yaml 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