From ceadbf3f4fb5dfb18612f7f88aa9f6eaa6b9b439 Mon Sep 17 00:00:00 2001 From: aiweithesushigirl Date: Mon, 10 Jun 2024 11:29:44 -0400 Subject: [PATCH] add prettier yaml --- .github/workflows/prettier.yaml | 16 ++++++++++++++++ .github/workflows/tests.yaml | 16 +++------------- 2 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/prettier.yaml diff --git a/.github/workflows/prettier.yaml b/.github/workflows/prettier.yaml new file mode 100644 index 000000000..0da8a1917 --- /dev/null +++ b/.github/workflows/prettier.yaml @@ -0,0 +1,16 @@ +name: Tests +on: [push, pull_request, merge_group] +jobs: + test: + runs-on: ubuntu-latest + name: Unit Tests + steps: + - uses: actions/checkout@v2 + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: 18 + - name: Install prettier + run: npm install -g prettier + - name: Check linting + run: prettier --check src/ diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 9097518d4..3b7fb90e2 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,16 +9,6 @@ jobs: - name: Setup node uses: actions/setup-node@v1 with: - node-version: 18 - - name: Install pnpm - run: npm install -g pnpm - - run: pnpm install --frozen-lockfile - - name: Install jsonlint - run: pnpm install jsonlint-cli - - name: Run jsonlint - run: | - json_files=$(find . -name '*.json') - for file in $json_files; do - ./node_modules/.bin/jsonlint-cli -s "$file" - done - - run: pnpm test + node-version: 16 + - run: yarn install --frozen-lockfile + - run: yarn test