mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Format yaml files with prettier
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -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/**/*
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user