fix(wasm): add test-ext-api feature to mm2_main and mm2_bin_lib tomls #5492
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Lint | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- reopened | |
- synchronize | |
- labeled | |
- unlabeled | |
jobs: | |
main: | |
name: Validate PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: amannn/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
types: | | |
feat | |
fix | |
improvement | |
chore | |
docs | |
deps | |
test | |
refactor | |
ci | |
requireScope: true | |
# Do not allow starting with uppercase for subject part | |
subjectPattern: ^(?![A-Z]).+$ | |
headerPatternCorrespondence: type, scope, subject | |
- name: Check PR title length | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
run: | | |
title_length=${#TITLE} | |
if [ $title_length -gt 85 ] | |
then | |
echo "PR title is too long (greater than 85 characters)" | |
exit 1 | |
fi | |
- name: Check PR labels | |
env: | |
LABEL_NAMES: ${{ toJson(github.event.pull_request.labels.*.name) }} | |
if: "( | |
(contains(env.LABEL_NAMES, 'status: pending review') && !contains(env.LABEL_NAMES, 'status: in progress') && !contains(env.LABEL_NAMES, 'status: blocked')) | |
|| | |
(!contains(env.LABEL_NAMES, 'status: pending review') && contains(env.LABEL_NAMES, 'status: in progress') && !contains(env.LABEL_NAMES, 'status: blocked')) | |
|| | |
(!contains(env.LABEL_NAMES, 'status: pending review') && !contains(env.LABEL_NAMES, 'status: in progress') && contains(env.LABEL_NAMES, 'status: blocked')) | |
)" | |
run: | | |
echo "PR must have exactly one of these labels: ['status: pending review', 'status: in progress', 'status: blocked']." | |
exit 1 |