Add github workflow to launch Chromium and dump its tree on Linux #118
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: Test NodeJS Dump Tree | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
launch_chromium: | |
name: Dump tree against Chromium on Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install System dependencies | |
run: sudo apt install -y at-spi2-core libatspi2.0-dev libnode-dev | |
- name: Install node-gyp | |
run: sudo npm install -g node-gyp | |
- name: Install SWIG 4.1.0 | |
run: | | |
wget "https://github.com/swig/swig/archive/refs/tags/v4.1.0.tar.gz" | |
tar -axf v4.1.0.tar.gz | |
cd swig-4.1.0 | |
./autogen.sh | |
./configure --without-alllang --with-javascript --with-jsv8inc=/usr/include/v8 --with-jsv8lib=/usr/lib --with-python3 | |
make -j | |
sudo make install | |
- uses: actions/checkout@v3 | |
- name: Configure Project | |
run: | | |
mkdir -p build | |
cd build | |
cmake .. -DACACIA_NODEJS=on -DACACIA_PYTHON=off -DACACIA_TESTS=on | |
- name: Build project | |
run: | | |
cd build | |
make -j | |
- name: Run tests | |
run: | | |
cd build | |
ls -halF ./tests/atspi/ | |
ldd ./tests/atspi/acacia_atspi.node | |
nm -g ./tests/atspi/acacia_atspi.node | |
pkg-config --libs atspi-2 | |
ctest --rerun-failed --output-on-failure |