Sort connections by name. #24
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 | |
on: [pull_request, workflow_call] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- name: Install and test | |
run: | | |
npm ci --loglevel error | |
npm run build | |
npm run test | |
- name: Start dbus | |
run: | | |
sudo service dbus start | |
export XDG_RUNTIME_DIR=/tmp/xdg_runtime | |
mkdir $XDG_RUNTIME_DIR | |
chmod 700 $XDG_RUNTIME_DIR | |
chown $(id -un):$(id -gn) $XDG_RUNTIME_DIR | |
export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus | |
echo "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS" >> "$GITHUB_ENV" | |
dbus-daemon --session --address=$DBUS_SESSION_BUS_ADDRESS --nofork --nopidfile --syslog-only & | |
- name: Run integration test | |
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a | |
with: | |
run: npm run integration | |
env: | |
CI: true |