From 699e225833f2c9407447c7e8db726a6dad6a77ea Mon Sep 17 00:00:00 2001 From: sunrisepeak Date: Mon, 23 Dec 2024 21:43:20 +0800 Subject: [PATCH] workflows: add auto test --- .github/workflows/xlings-test.yml | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/xlings-test.yml diff --git a/.github/workflows/xlings-test.yml b/.github/workflows/xlings-test.yml new file mode 100644 index 0000000..ce75d40 --- /dev/null +++ b/.github/workflows/xlings-test.yml @@ -0,0 +1,52 @@ +name: Xlings Test - CI + +on: [push] + +jobs: + linux-job: + runs-on: ubuntu-latest + env: + PATH: ${{ github.workspace }}/.xlings_data/bin:$PATH + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install curl and git + run: sudo apt-get update && sudo apt-get install -y curl git + + - name: Clone Xlings Repository & Installation + run: | + git clone --depth 1 https://github.com/d2learn/xlings.git + cd xlings && ./tools/install.unix.sh + xlings -h + xim -h + + - name: XIM Test on Ubuntu + run: | + xim -l + xim --detect + xim -s v + xim -i nvm -y + source ~/.bashrc + xim -l + xim -r nvm -y + xim -l +# TODO +# windows-job: +# runs-on: windows-latest +# +# steps: +# - name: Checkout repository +# uses: actions/checkout@v2 +# +# - name: Execute PowerShell script on Windows +# run: | +# $script = Invoke-WebRequest 'https://d2learn.org/xlings-install.ps1.txt' -UseBasicParsing +# Invoke-Expression $script.Content +# xlings -h +# xim -h +# shell: pwsh +# +# - name: XIM Test on Windows +# run: xim --detect +# shell: pwsh \ No newline at end of file