mirror of
https://github.com/maputnik/editor.git
synced 2026-05-06 08:10:02 +00:00
Bumps [cypress-io/github-action](https://github.com/cypress-io/github-action) from 7.1.9 to 7.1.10. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cypress-io/github-action/releases">cypress-io/github-action's releases</a>.</em></p> <blockquote> <h2>v7.1.10</h2> <h2><a href="https://github.com/cypress-io/github-action/compare/v7.1.9...v7.1.10">7.1.10</a> (2026-04-27)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> update fast-xml-parser to 5.7.1 (<a href="https://redirect.github.com/cypress-io/github-action/issues/1737">#1737</a>) (<a href="c495c3ddff">c495c3d</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="c495c3ddff"><code>c495c3d</code></a> fix(deps): update fast-xml-parser to 5.7.1 (<a href="https://redirect.github.com/cypress-io/github-action/issues/1737">#1737</a>)</li> <li><a href="eaec29b187"><code>eaec29b</code></a> chore(deps): update basic-ftp to 5.3.0 (<a href="https://redirect.github.com/cypress-io/github-action/issues/1734">#1734</a>)</li> <li><a href="aed135c7a2"><code>aed135c</code></a> chore(renovate): enable lockfileMaintenance for examples/** (<a href="https://redirect.github.com/cypress-io/github-action/issues/1735">#1735</a>)</li> <li><a href="3893be35ee"><code>3893be3</code></a> chore(deps): update tailwindcss monorepo to ^4.2.4 (<a href="https://redirect.github.com/cypress-io/github-action/issues/1733">#1733</a>)</li> <li><a href="05265b4fe0"><code>05265b4</code></a> chore(deps): update dependency cypress to v15.14.1 (<a href="https://redirect.github.com/cypress-io/github-action/issues/1732">#1732</a>)</li> <li><a href="59192731e8"><code>5919273</code></a> chore(deps): update tailwindcss monorepo to ^4.2.3 (<a href="https://redirect.github.com/cypress-io/github-action/issues/1731">#1731</a>)</li> <li><a href="04e35b7616"><code>04e35b7</code></a> chore(deps): update dependency webpack to ^5.106.2 (<a href="https://redirect.github.com/cypress-io/github-action/issues/1730">#1730</a>)</li> <li><a href="c8e8dca4b4"><code>c8e8dca</code></a> chore(deps): update dependency lodash to ^4.18.1 (<a href="https://redirect.github.com/cypress-io/github-action/issues/1721">#1721</a>)</li> <li><a href="da9ff6e247"><code>da9ff6e</code></a> chore(deps): update dependency cypress to v15.14.0 (<a href="https://redirect.github.com/cypress-io/github-action/issues/1724">#1724</a>)</li> <li><a href="9230a04390"><code>9230a04</code></a> chore(deps): update cypress/browsers docker tag to v24.15.0 (<a href="https://redirect.github.com/cypress-io/github-action/issues/1723">#1723</a>)</li> <li>Additional commits viewable in <a href="783cb3f079...c495c3ddff">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
155 lines
4.8 KiB
YAML
155 lines
4.8 KiB
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
|
|
build-node:
|
|
name: "build on ${{ matrix.os }}"
|
|
runs-on: ${{ matrix.os }}
|
|
permissions:
|
|
contents: read
|
|
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with: { persist-credentials: false }
|
|
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run lint
|
|
- run: npm run lint-css
|
|
|
|
|
|
|
|
build-artifacts:
|
|
name: "build artifacts"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with: { persist-credentials: false }
|
|
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- name: artifacts/maputnik
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: maputnik
|
|
path: dist
|
|
|
|
# Build and upload desktop CLI artifacts
|
|
- name: Set up Go
|
|
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
|
with:
|
|
go-version: ^1.23.x
|
|
cache-dependency-path: desktop/go.sum
|
|
id: go
|
|
|
|
- name: Build desktop artifacts
|
|
run: npm run build-desktop
|
|
|
|
- name: Artifacts/linux
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: maputnik-linux
|
|
path: ./desktop/bin/linux/
|
|
|
|
- name: Artifacts/darwin
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: maputnik-darwin
|
|
path: ./desktop/bin/darwin/
|
|
|
|
- name: Artifacts/windows
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: maputnik-windows
|
|
path: ./desktop/bin/windows/
|
|
|
|
unit-tests:
|
|
name: "Unit tests"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with: { persist-credentials: false }
|
|
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
- run: npm ci
|
|
- run: npm run test-unit-ci
|
|
- name: Upload coverage reports to Codecov
|
|
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
|
|
with:
|
|
files: ${{ github.workspace }}/coverage/coverage-final.json
|
|
verbose: true
|
|
|
|
e2e-tests:
|
|
name: "E2E tests using chrome"
|
|
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with: { persist-credentials: false }
|
|
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
- run: npm ci
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@c495c3ddffba403ba11be95fffb67e25203b3799 # v7.1.10
|
|
with:
|
|
build: npm run build
|
|
start: npm run start
|
|
browser: chrome
|
|
- name: Upload coverage reports to Codecov
|
|
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
|
|
with:
|
|
files: ${{ github.workspace }}/.nyc_output/out.json
|
|
verbose: true
|
|
|
|
e2e-tests-docker:
|
|
name: "E2E tests using chrome and docker"
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with: { persist-credentials: false }
|
|
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
- run: npm ci
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@c495c3ddffba403ba11be95fffb67e25203b3799 # v7.1.10
|
|
with:
|
|
build: docker build -t maputnik .
|
|
start: docker run --rm --network host maputnik --port=8888
|
|
browser: chrome
|
|
- name: Upload coverage reports to Codecov
|
|
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
|
|
with:
|
|
files: ${{ github.workspace }}/.nyc_output/out.json
|
|
verbose: true
|