mirror of
https://github.com/zdharma-continuum/fast-syntax-highlighting.git
synced 2026-09-10 07:16:18 -04:00
Merge pull request #9 from zdharma-continuum/ci
This commit is contained in:
commit
db6d265db0
30
.github/workflows/zunit.yaml
vendored
Normal file
30
.github/workflows/zunit.yaml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: zunit
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
zunit:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt install -y zsh
|
||||
|
||||
mkdir bin
|
||||
curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > bin/revolver
|
||||
curl -L https://raw.githubusercontent.com/molovo/color/master/color.zsh > bin/color
|
||||
|
||||
git clone https://github.com/zunit-zsh/zunit.git zunit.git
|
||||
cd zunit.git
|
||||
./build.zsh
|
||||
cd ..
|
||||
mv ./zunit.git/zunit bin
|
||||
|
||||
chmod u+x bin/{color,revolver,zunit}
|
||||
|
||||
- name: Unit tests
|
||||
run: |
|
||||
export PATH="$PWD/bin:$PATH"
|
||||
zunit
|
||||
13
.travis.yml
13
.travis.yml
|
|
@ -1,13 +0,0 @@
|
|||
addons:
|
||||
apt:
|
||||
packages:
|
||||
zsh
|
||||
install:
|
||||
- mkdir .bin
|
||||
- curl -L https://github.com/zunit-zsh/zunit/releases/download/v0.8.2/zunit > .bin/zunit
|
||||
- curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > .bin/revolver
|
||||
- curl -L https://raw.githubusercontent.com/molovo/color/master/color.zsh > .bin/color
|
||||
before_script:
|
||||
- chmod u+x .bin/{color,revolver,zunit}
|
||||
- export PATH="$PWD/.bin:$PATH"
|
||||
script: zunit
|
||||
Loading…
Reference in a new issue