Skip to content

Commit

Permalink
workflows: add auto test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunrisepeak committed Dec 23, 2024
1 parent 9faeecf commit 699e225
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/xlings-test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 699e225

Please sign in to comment.