Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bump @types/node from 22.15.21 to 22.15.23#1569

Bump @types/node from 22.15.21 to 22.15.23

Bump @types/node from 22.15.21 to 22.15.23 #1569

Workflow file for this run

name:Main
on:
-push
-pull_request
jobs:
# Ensure that the distributables compile with esbuild (since tests use tsc)
build:
name:Build Distributables
runs-on:ubuntu-latest
env:
CI:true
steps:
-uses:actions/checkout@master
-uses:actions/setup-node@v4
with:
node-version:18.x
cache:yarn
-name:Compile extension
run:|
yarn install --frozen-lockfile
yarn lint
yarn compile
# Run tests (including a special build of extension w/ tsc, not esbuild)
test:
name:Run Tests
strategy:
matrix:
os:
# - macos-latest
-ubuntu-latest
# - windows-latest
ruby:
-3.1
# - 3.0
# - 2.7
runs-on:${{ matrix.os }}
env:
CI:true
steps:
-uses:actions/checkout@master
-uses:actions/setup-node@v4
with:
node-version:18.x
cache:yarn
-uses:ruby/setup-ruby@v1
with:
bundler-cache:true
ruby-version:${{ matrix.ruby }}
-name:Install Gem
run:gem install syntax_tree
-name:Compile Tests
run:|
yarn install --frozen-lockfile
yarn test-compile
-name:Setup GUI Environment
run:|
sudo apt-get install -yq dbus-x11 ffmpeg > /dev/null
mkdir -p ~/bin
mkdir -p ~/var/run
cat <<EOF > ~/bin/xvfb-shim
#! /bin/bash
echo DISPLAY=\$DISPLAY >> ${GITHUB_ENV}
echo XAUTHORITY=\$XAUTHORITY >> ${GITHUB_ENV}
sleep 86400
EOF
chmod a+x ~/bin/xvfb-shim
dbus-launch >> ${GITHUB_ENV}
start-stop-daemon --start --quiet --pidfile ~/var/run/Xvfb.pid --make-pidfile --background --exec /usr/bin/xvfb-run -- ~/bin/xvfb-shim
echo -n "Waiting for Xvfb to start..."
while ! grep -q DISPLAY= ${GITHUB_ENV}; do
echo -n .
sleep 3
done
if:runner.os == 'Linux'
-name:Start Screen Recording
run:|
mkdir -p $PWD/videos-raw
no_close=--no-close # uncomment to see ffmpeg output (i.e. leave stdio open)
start-stop-daemon $no_close --start --quiet --pidfile ~/var/run/ffmpeg.pid --make-pidfile --background --exec /usr/bin/ffmpeg -- -nostdin -f x11grab -video_size 1280x1024 -framerate 10 -i ${DISPLAY}.0+0,0 $PWD/videos-raw/test.mp4
# pid=`cat ~/var/run/ffmpeg.pid`
# echo "Waiting for ffmpeg (pid $pid) to start recording (display $DISPLAY)..."
# while [ ! -f $PWD/videos-raw/test.mp4 ]; do
# echo -n .
# sleep 3
# done
if:runner.os == 'Linux'
-name:Cache VS Code Binary
id:vscode-test
uses:actions/cache@v4
with:
path:.vscode-test/
key:${{ runner.os }}-vscode-test
# - name: SSH Debug Breakpoint
# uses: lhotari/action-upterm@v1
# with:
# limit-access-to-actor: true
-name:Run Tests
run:npm test
-name:Stop Screen Recording
run:|
start-stop-daemon --stop --pidfile ~/var/run/ffmpeg.pid
sleep 3
mkdir -p $PWD/videos
for f in $PWD/videos-raw/*.mp4; do
out=`basename $f`
ffmpeg -i $f -vf format=yuv420p $PWD/videos/$out
done
if:always() && runner.os == 'Linux'
-name:Archive Screen Recording
uses:actions/upload-artifact@v4
with:
name:videos
path:|
videos/
if:always() && runner.os == 'Linux'
-name:Teardown GUI Environment
run:|
start-stop-daemon --stop --pidfile ~/var/run/Xvfb.pid
kill $DBUS_SESSION_BUS_PID
if:always() && runner.os == 'Linux'

[8]ページ先頭

©2009-2025 Movatter.jp