Skip to content

Import and modernize bocoup/test262-regexp-generator #2

Import and modernize bocoup/test262-regexp-generator

Import and modernize bocoup/test262-regexp-generator #2

Workflow file for this run

name: Tools
jobs:
lint:
name: Lint tests
on:
push
# FIXME: only on push: main
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/lint/requirements.txt
- name: Test the lint tool
run: ./tools/lint/test/run.py
- name: Lint all tests
run: ./tools/scripts/ci_lint.sh
lint_new:
name: Lint new or changed tests
on:
pull_request
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/lint/requirements.txt
- name: Test the lint tool
run: ./tools/lint/test/run.py
- name: Identify new or changed tests
id: changed_tests
uses: tj-actions/changed-files@v45
with:
files: test/
- name: Lint new or changed tests
if: steps.changed_tests.outputs.any_changed == 'true'
env:
CHANGED: ${{ steps.changed_tests.outputs.all_changed_files }}
run: |
echo New or modified test files:
echo "$CHANGED"
./tools/scripts/ci_lint.sh "$CHANGED"