|
| 1 | +name: 🛡️ ZUnit |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + push: |
| 6 | + branches: [ main ] |
| 7 | + pull_request_target: |
| 8 | + branches: [ main ] |
| 9 | + |
| 10 | +jobs: |
| 11 | + build-macos: |
| 12 | + name: 🧪 Mac ZUnit CI |
| 13 | + runs-on: macos-latest |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v2 |
| 16 | + - name: 📚 Molovo zunit |
| 17 | + run: | |
| 18 | + mkdir bin |
| 19 | + curl -fsSL https://raw.githubusercontent.com/molovo/revolver/v0.2.4/revolver > bin/revolver |
| 20 | + curl -fsSL https://raw.githubusercontent.com/molovo/color/d8f91ab5fcfceb623ae45d3333ad0e543775549c/color.zsh > bin/color |
| 21 | + curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > bin/revolver |
| 22 | + curl -L https://raw.githubusercontent.com/molovo/color/master/color.zsh > bin/color |
| 23 | + git clone https://github.com/zunit-zsh/zunit.git zunit.git |
| 24 | + cd zunit.git |
| 25 | + ./build.zsh |
| 26 | + cd .. |
| 27 | + mv ./zunit.git/zunit bin |
| 28 | + chmod u+x bin/{color,revolver,zunit} |
| 29 | + - name: ✏️ Run the test |
| 30 | + run: | |
| 31 | + export TERM="xterm-256color" |
| 32 | + export PATH="$PWD/bin:$PATH" |
| 33 | + zunit |
| 34 | +
|
| 35 | + build-linux: |
| 36 | + name: 🧪 Linux Zunit CI |
| 37 | + runs-on: ubuntu-latest |
| 38 | + strategy: |
| 39 | + matrix: |
| 40 | + os: [ubuntu-latest] |
| 41 | + steps: |
| 42 | + - uses: actions/checkout@v2 |
| 43 | + - name: ℹ️ Setup linux dependencies |
| 44 | + run: | |
| 45 | + sudo apt update |
| 46 | + sudo apt-get install zsh -yq |
| 47 | + - name: 📚 Molovo zunit |
| 48 | + run: | |
| 49 | + mkdir bin |
| 50 | + curl -fsSL https://raw.githubusercontent.com/molovo/revolver/v0.2.4/revolver > bin/revolver |
| 51 | + curl -fsSL https://raw.githubusercontent.com/molovo/color/d8f91ab5fcfceb623ae45d3333ad0e543775549c/color.zsh > bin/color |
| 52 | + curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > bin/revolver |
| 53 | + curl -L https://raw.githubusercontent.com/molovo/color/master/color.zsh > bin/color |
| 54 | + git clone https://github.com/zunit-zsh/zunit.git zunit.git |
| 55 | + cd zunit.git |
| 56 | + ./build.zsh |
| 57 | + cd .. |
| 58 | + mv ./zunit.git/zunit bin |
| 59 | + chmod u+x bin/{color,revolver,zunit} |
| 60 | + - name: ✏️ Run the test |
| 61 | + run: | |
| 62 | + export TERM="xterm-256color" |
| 63 | + export PATH="$PWD/bin:$PATH" |
| 64 | + zunit |
0 commit comments