added support for one flag only #150
Workflow file for this run
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: testing | |
on: | |
push: | |
branches-ignore: | |
- "master" | |
paths-ignore: | |
- "README.md" | |
pull_request: | |
jobs: | |
test-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print bash version | |
run: | | |
bash --version | |
- uses: actions/checkout@v2 | |
- name: Lint with shellcheck | |
uses: reviewdog/action-shellcheck@v1 | |
with: | |
github_token: ${{ secrets.github_token }} | |
reporter: github-check | |
path: "." | |
pattern: "bargs.sh" | |
exclude: "./.git/*" | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y && sudo apt-get install -y bsdmainutils | |
- name: Test with bash script | |
run: | | |
bash tests.sh | |
test-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Print bash version | |
run: | | |
bash --version | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
HOMEBREW_NO_AUTO_UPDATE=1 brew install bash util-linux | |
- name: Test with bash script | |
run: | | |
bash tests.sh | |
test-wsl: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
shell: powershell | |
run: | | |
$url = "http://bargs.link/utils/dos2unix-7.4.1-win64.zip" | |
$output = ".\dos2unix.zip" | |
(New-Object System.Net.WebClient).DownloadFile($url, $output) | |
Expand-Archive .\dos2unix.zip .\dos2unix | |
.\dos2unix\bin\dos2unix.exe bargs.sh bargs_vars example.sh tests.sh | |
$url = "https://aka.ms/wsl-ubuntu-1804" | |
$output = ".\Ubuntu.zip" | |
(New-Object System.Net.WebClient).DownloadFile($url, $output) | |
Expand-Archive .\Ubuntu.zip .\Ubuntu | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
.\Ubuntu\ubuntu1804.exe install --root | |
- name: Test with bash script | |
shell: powershell | |
run: | | |
wsl -u root -d Ubuntu-18.04 -- source ./tests.sh |