mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 22:10:34 +00:00
* 🚑 Drop invoke_* glue checks from staging CI The .github backport from develop added check-no-invoke-v to WASM and Exporter CI, but staging still ships glue that uses invoke_* wrappers. Remove those steps (and the WASM production build only used by the check) so staging CI matches the binary it builds. * 🔧 Disable credential persistence in commit-checker checkout zizmor fails CI: Workflows when actions/checkout omits persist-credentials: false. Match the rest of the workflows.
63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
YAML
name: "CI: WASM"
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'render-wasm/**'
|
|
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- ready_for_review
|
|
|
|
push:
|
|
branches:
|
|
- develop
|
|
- staging
|
|
|
|
paths:
|
|
- 'render-wasm/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test-render-wasm:
|
|
if: ${{ !github.event.pull_request.draft }}
|
|
name: "Render WASM Tests"
|
|
runs-on: penpot-extended-runner
|
|
container:
|
|
image: penpotapp/devenv:latest
|
|
volumes:
|
|
- /var/cache/github-runner/m2:/root/.m2
|
|
- /var/cache/github-runner/gitlib:/root/.gitlibs
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Format
|
|
working-directory: ./render-wasm
|
|
run: |
|
|
cargo fmt --check
|
|
|
|
- name: Lint
|
|
working-directory: ./render-wasm
|
|
run: |
|
|
./lint
|
|
|
|
- name: Test
|
|
working-directory: ./render-wasm
|
|
run: |
|
|
./test
|