From d7f815672570ccb79c7774247a48fefb8f4b4a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 16 Dec 2022 15:51:13 +0100 Subject: [PATCH] Format yaml files with prettier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rūdolfs Ošiņš --- .github/workflows/check-build.yml | 42 +++++++++++++-------------- .github/workflows/check-e2e.yml | 10 +++---- .github/workflows/check-format.yml | 6 ++-- .github/workflows/check-unit-test.yml | 6 ++-- .github/workflows/check.yml | 6 ++-- package.json | 2 +- scripts/check-format | 2 +- 7 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/check-build.yml b/.github/workflows/check-build.yml index 0fd77f081..d3a598635 100644 --- a/.github/workflows/check-build.yml +++ b/.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/**/* diff --git a/.github/workflows/check-e2e.yml b/.github/workflows/check-e2e.yml index 9a4544904..a63327b4b 100644 --- a/.github/workflows/check-e2e.yml +++ b/.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() diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index 39d1542c9..ca7fd8fd8 100644 --- a/.github/workflows/check-format.yml +++ b/.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 diff --git a/.github/workflows/check-unit-test.yml b/.github/workflows/check-unit-test.yml index 1cdbcf5a4..2704c04ca 100644 --- a/.github/workflows/check-unit-test.yml +++ b/.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 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ed9378cd2..1182115a9 100644 --- a/.github/workflows/check.yml +++ b/.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 diff --git a/package.json b/package.json index 2a9997ee2..9eeac5c64 100644 --- a/package.json +++ b/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" }, diff --git a/scripts/check-format b/scripts/check-format index 741562789..9faa92788 100755 --- a/scripts/check-format +++ b/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