Skip to content

Rebaseline Tests

Rebaseline Tests #11

name: Rebaseline Tests
on: [workflow_dispatch]
permissions:
contents: write
pull-requests: write
jobs:
rebaseline-tests:
name: Rebaseline Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: pip install
run: |
which python3
python3 --version
python3 -m pip install -r requirements-dev.txt
- name: Install emsdk
run: |
EM_CONFIG=$HOME/emsdk/.emscripten
echo $EM_CONFIG
curl -# -L -o ~/emsdk-main.tar.gz https://github.com/emscripten-core/emsdk/archive/main.tar.gz
tar -C ~ -xf ~/emsdk-main.tar.gz
mv ~/emsdk-main ~/emsdk
cd ~/emsdk
./emsdk install tot
./emsdk activate tot
echo "JS_ENGINES = [NODE_JS]" >> $EM_CONFIG
echo "final config:"
cat $EM_CONFIG
echo "EM_CONFIG=$EM_CONFIG" >> $GITHUB_ENV
- name: Rebaseline tests
run: |
git config user.name emscripten-bot
git config user.email [email protected]
#echo "TEST" >> README.md
#git add README.md
#git checkout -b testing ${{ github.ref_name }}
#git commit -m "Testing"
./bootstrap
./tools/maint/rebaseline_tests.py
- name: Create PR
id: cpr
run: |
git push origin testing
gh pr create --fill --base ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge
run: gh pr merge --squash --auto "${{ steps.cpr.outputs.pull-request-number }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}