From 14e773f9dee0319d85bed9c351a3af3aa4da8b6d Mon Sep 17 00:00:00 2001 From: Dunkel <7890309+DarkView@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:17:45 +0100 Subject: [PATCH] Update push action to lint and format --- .../{build-and-test.yml => lint-format-build.yml} | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) rename .github/workflows/{build-and-test.yml => lint-format-build.yml} (73%) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/lint-format-build.yml similarity index 73% rename from .github/workflows/build-and-test.yml rename to .github/workflows/lint-format-build.yml index 7b1fb14..186f724 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/lint-format-build.yml @@ -1,4 +1,4 @@ -name: Build and Test +name: Lint, Format and Build on: push: @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [22.x, 23.x] + node-version: [22.x] steps: - uses: actions/checkout@v4 @@ -22,10 +22,12 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: "yarn" + cache: 'yarn' - name: Install dependencies run: yarn install --immutable - # - name: Run tests - # run: yarn test + - name: Run eslint + run: yarn run lint + - name: Run prettier + run: yarn run format - name: Run build run: yarn build