Update ci.yaml
CI Pipeline / e2e (chromium) (pull_request) Failing after 2m18s
CI Pipeline / e2e (firefox) (pull_request) Failing after 3m31s
CI Pipeline / test (pull_request) Successful in 6m33s
CI Pipeline / e2e (webkit) (pull_request) Failing after 2m19s
CI Pipeline / visual-regression (pull_request) Failing after 4m25s
CI Pipeline / performance (pull_request) Failing after 3m45s
CI Pipeline / lint (pull_request) Failing after 3m24s
CI Pipeline / build (pull_request) Failing after 1m0s
CI Pipeline / storybook (pull_request) Successful in 7m11s

This commit is contained in:
adilallo
2026-01-28 15:35:23 -07:00
parent d8fab7604f
commit 2652015e80
+26 -39
View File
@@ -1,5 +1,5 @@
name: CI Pipeline name: CI Pipeline
run-name: ${{ gitea.actor }} triggered CI pipeline run-name: "${{ gitea.actor }} triggered CI pipeline"
on: on:
workflow_dispatch: {} workflow_dispatch: {}
@@ -20,18 +20,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
if: ${{ github.server_url == 'https://github.com' }} with:
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm } node-version: "${{ env.NODE_VERSION }}"
- uses: actions/setup-node@v4 cache: npm
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
with: { node-version: ${{ env.NODE_VERSION }} }
- run: npm ci --no-audit --fund=false - run: npm ci --no-audit --fund=false
- run: npm test -- --reporter=dot --maxConcurrency=1 - run: npm test -- --reporter=dot --maxConcurrency=1
# If the Codecov Action fails on Gitea, replace this with the bash uploader below # If the Codecov Action fails on Gitea, replace this with the bash uploader below
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v3
with: with:
token: ${{ secrets.CODECOV_TOKEN }} token: "${{ secrets.CODECOV_TOKEN }}"
files: ./coverage/lcov.info files: ./coverage/lcov.info
flags: unittests flags: unittests
@@ -44,18 +42,17 @@ jobs:
e2e: e2e:
runs-on: [self-hosted, macos-latest] runs-on: [self-hosted, macos-latest]
strategy: strategy:
matrix: { browser: [chromium, firefox, webkit] } matrix:
browser: [chromium, firefox, webkit]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
if: ${{ github.server_url == 'https://github.com' }} with:
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm } node-version: "${{ env.NODE_VERSION }}"
- uses: actions/setup-node@v4 cache: npm
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
with: { node-version: ${{ env.NODE_VERSION }} }
- run: npm ci --no-audit --fund=false - run: npm ci --no-audit --fund=false
- name: Install Playwright - name: Install Playwright
run: npx playwright install --with-deps ${{ matrix.browser }} run: "npx playwright install --with-deps ${{ matrix.browser }}"
- run: npm run build - run: npm run build
- name: E2E (start + test + teardown) - name: E2E (start + test + teardown)
@@ -115,11 +112,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
if: ${{ github.server_url == 'https://github.com' }} with:
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm } node-version: "${{ env.NODE_VERSION }}"
- uses: actions/setup-node@v4 cache: npm
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
with: { node-version: ${{ env.NODE_VERSION }} }
- run: npm ci --no-audit --fund=false - run: npm ci --no-audit --fund=false
- name: Install Playwright - name: Install Playwright
run: npx playwright install --with-deps run: npx playwright install --with-deps
@@ -304,11 +299,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
if: ${{ github.server_url == 'https://github.com' }} with:
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm } node-version: "${{ env.NODE_VERSION }}"
- uses: actions/setup-node@v4 cache: npm
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
with: { node-version: ${{ env.NODE_VERSION }} }
- run: npm ci --no-audit --fund=false - run: npm ci --no-audit --fund=false
- name: Build application - name: Build application
@@ -456,11 +449,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
if: ${{ github.server_url == 'https://github.com' }} with:
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm } node-version: "${{ env.NODE_VERSION }}"
- uses: actions/setup-node@v4 cache: npm
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
with: { node-version: ${{ env.NODE_VERSION }} }
- run: npm ci --no-audit --fund=false - run: npm ci --no-audit --fund=false
- run: npm run storybook:build:github - run: npm run storybook:build:github
# Storybook is used for component documentation only. # Storybook is used for component documentation only.
@@ -471,11 +462,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
if: ${{ github.server_url == 'https://github.com' }} with:
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm } node-version: "${{ env.NODE_VERSION }}"
- uses: actions/setup-node@v4 cache: npm
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
with: { node-version: ${{ env.NODE_VERSION }} }
- run: npm ci --no-audit --fund=false - run: npm ci --no-audit --fund=false
- run: npm run lint - run: npm run lint
- run: npm exec prettier -- --check "**/*.{js,jsx,ts,tsx,json,css,md}" - run: npm exec prettier -- --check "**/*.{js,jsx,ts,tsx,json,css,md}"
@@ -485,11 +474,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
if: ${{ github.server_url == 'https://github.com' }} with:
with: { node-version: ${{ env.NODE_VERSION }}, cache: npm } node-version: "${{ env.NODE_VERSION }}"
- uses: actions/setup-node@v4 cache: npm
if: ${{ github.server_url != 'https://github.com' || !github.server_url }}
with: { node-version: ${{ env.NODE_VERSION }} }
- run: npm ci --no-audit --fund=false - run: npm ci --no-audit --fund=false
- run: npm run build - run: npm run build
- run: npm run storybook:build:github - run: npm run storybook:build:github