mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-11 07:46:26 -04:00
parent
b37ebeda9c
commit
e69def2cbe
21
.github/workflows/ci.yaml
vendored
21
.github/workflows/ci.yaml
vendored
|
|
@ -1,6 +1,6 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: CI
|
||||
name: ci
|
||||
|
||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the master branch
|
||||
|
|
@ -27,20 +27,27 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
if [[ "${{ matrix.os }}" == macos* ]]; then
|
||||
brew install zsh fish
|
||||
brew install zsh fish shellcheck
|
||||
elif [[ "${{ matrix.os }}" == ubuntu* ]]; then
|
||||
sudo apt-add-repository -y ppa:fish-shell/release-3
|
||||
sudo apt -y update
|
||||
sudo apt -y install zsh fish
|
||||
sudo apt -y install zsh fish shellcheck
|
||||
fi
|
||||
- name: Show version info
|
||||
|
||||
- name: Show version
|
||||
run: |
|
||||
bash --version
|
||||
zsh --version
|
||||
fish --version
|
||||
bash --version; echo
|
||||
zsh --version; echo
|
||||
fish --version; echo
|
||||
|
||||
- name: Shellcheck
|
||||
run: shellcheck forgit.plugin.sh
|
||||
|
||||
- name: Test bash
|
||||
run: bash forgit.plugin.sh
|
||||
|
||||
- name: Test zsh
|
||||
run: zsh forgit.plugin.zsh
|
||||
|
||||
- name: Test fish
|
||||
run: fish forgit.plugin.fish
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<p align="center">
|
||||
<a href="https://github.com/wfxr/forgit/actions">
|
||||
<img src="https://github.com/wfxr/forgit/workflows/CI/badge.svg"/>
|
||||
<img src="https://github.com/wfxr/forgit/workflows/ci/badge.svg"/>
|
||||
</a>
|
||||
<a href="https://img.shields.io/badge/Shell-Bash%20%7C%20Zsh%20%7C%20Fish-blue">
|
||||
<img src="https://img.shields.io/badge/Shell-Bash%20%7C%20Zsh%20%7C%20Fish-blue"/>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
# MIT (c) Wenxuan Zhang
|
||||
forgit::warn() { printf "%b[Warn]%b %s\n" '\e[0;33m' '\e[0m' "$@" >&2; }
|
||||
forgit::info() { printf "%b[Info]%b %s\n" '\e[0;32m' '\e[0m' "$@" >&2; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue