workflows: add auto test #6
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: 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 |