Format yaml files with prettier

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-12-16 15:51:13 +01:00
parent 2c022a40df
commit d7f8156725
7 changed files with 37 additions and 37 deletions
+21 -21
View File
@@ -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/**/*
+5 -5
View File
@@ -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()
+3 -3
View File
@@ -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
+3 -3
View File
@@ -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
+3 -3
View File
@@ -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
+1 -1
View File
@@ -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"
},
+1 -1
View File
@@ -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