Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Format yaml files with prettier
Rūdolfs Ošiņš committed 3 years ago
commit d7f815672570ccb79c7774247a48fefb8f4b4a74
parent 2c022a40df8c436d6e8a8a9f8aa9cb0541646ea1
7 files changed +37 -37
modified .github/workflows/check-build.yml
@@ -2,32 +2,32 @@ name: check-build
on:
  push:
    branches:
-
    - master
+
      - master
  pull_request:
    branches:
-
    - master
+
      - master

jobs:
  check-build:
    timeout-minutes: 30
    runs-on: ubuntu-latest
    steps:
-
    - uses: actions/checkout@v3
-
    - uses: actions/setup-node@v3
-
      with:
-
        node-version: '18.12.1'
-
    - name: Install dependencies
-
      run: npm ci
-
    - name: Install Playwright Browsers
-
      run: npx playwright install --with-deps
-
    - name: Build app
-
      run: npm run build
-
    - name: Run Playwright build smoke test
-
      run: npm run test:e2e -- --project chromium --config playwright.buildSmoke.config.ts
-
    - uses: actions/upload-artifact@v3
-
      if: always()
-
      with:
-
        name: test-artifacts-${{ runner.os }}
-
        retention-days: 30
-
        path: |
-
          tests/artifacts/**/*
+
      - uses: actions/checkout@v3
+
      - uses: actions/setup-node@v3
+
        with:
+
          node-version: "18.12.1"
+
      - name: Install dependencies
+
        run: npm ci
+
      - name: Install Playwright Browsers
+
        run: npx playwright install --with-deps
+
      - name: Build app
+
        run: npm run build
+
      - name: Run Playwright build smoke test
+
        run: npm run test:e2e -- --project chromium --config playwright.buildSmoke.config.ts
+
      - uses: actions/upload-artifact@v3
+
        if: always()
+
        with:
+
          name: test-artifacts-${{ runner.os }}
+
          retention-days: 30
+
          path: |
+
            tests/artifacts/**/*
modified .github/workflows/check-e2e.yml
@@ -52,11 +52,11 @@ jobs:

      - name: Run Playwright tests
        run: |
-
              if [ ${{ matrix.browser }} = "visual" ] && [ ${{ github.ref }} = "refs/heads/master" ]; then
-
                npm run test:e2e -- --project ${{ matrix.browser }} --update-snapshots;
-
              else
-
                npm run test:e2e -- --project ${{ matrix.browser }};
-
              fi
+
          if [ ${{ matrix.browser }} = "visual" ] && [ ${{ github.ref }} = "refs/heads/master" ]; then
+
            npm run test:e2e -- --project ${{ matrix.browser }} --update-snapshots;
+
          else
+
            npm run test:e2e -- --project ${{ matrix.browser }};
+
          fi

      - uses: actions/upload-artifact@v3
        if: always()
modified .github/workflows/check-format.yml
@@ -2,10 +2,10 @@ name: check-format
on:
  push:
    branches:
-
    - master
+
      - master
  pull_request:
    branches:
-
    - master
+
      - master

jobs:
  check-format:
@@ -14,7 +14,7 @@ jobs:
      - name: Setup Node
        uses: actions/setup-node@v3
        with:
-
          node-version: '18.12.1'
+
          node-version: "18.12.1"
      - uses: actions/checkout@v2
      - run: npm ci
      - run: ./scripts/check-format
modified .github/workflows/check-unit-test.yml
@@ -2,10 +2,10 @@ name: check-unit-test
on:
  push:
    branches:
-
    - master
+
      - master
  pull_request:
    branches:
-
    - master
+
      - master

jobs:
  check-unit-test:
@@ -14,7 +14,7 @@ jobs:
      - name: Setup Node
        uses: actions/setup-node@v3
        with:
-
          node-version: '18.12.1'
+
          node-version: "18.12.1"
      - name: Checkout
        uses: actions/checkout@v2
      - run: npm ci
modified .github/workflows/check.yml
@@ -2,10 +2,10 @@ name: check
on:
  push:
    branches:
-
    - master
+
      - master
  pull_request:
    branches:
-
    - master
+
      - master

jobs:
  check:
@@ -14,7 +14,7 @@ jobs:
      - name: Setup Node
        uses: actions/setup-node@v3
        with:
-
          node-version: '18.12.1'
+
          node-version: "18.12.1"
      - uses: actions/checkout@v2
      - run: npm ci
      - run: npm run check
modified package.json
@@ -8,7 +8,7 @@
    "build:ipfs": "HASH_ROUTING=1 vite build --base ./",
    "postinstall": "scripts/copy-katex-assets && scripts/install-twemoji-assets",
    "check": "scripts/check",
-
    "format": "npx prettier '**/*.@(ts|js|svelte|json|css|html)' --ignore-path .gitignore --write",
+
    "format": "npx prettier '**/*.@(ts|js|svelte|json|css|html|yml)' --ignore-path .gitignore --write",
    "test:unit": "TZ='UTC' vitest run",
    "test:e2e": "TZ='UTC' playwright test"
  },
modified scripts/check-format
@@ -2,4 +2,4 @@
set -euo pipefail

npx eslint .
-
npx prettier "**/*.@(ts|js|svelte|json|css|html)" --ignore-path .gitignore --check
+
npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" --ignore-path .gitignore --check