dotman icon indicating copy to clipboard operation
dotman copied to clipboard

test dotman on older/newer versions of bash

Open Bhupesh-V opened this issue 5 years ago • 1 comments

Right now we are testing dotman for only Bash 4.x (which comes with Ubuntu 20.04. It would be nice to test it on bash 3 and 5 as well. For now, we only need to test syntax as done in the current workflow

name: build

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  linux-test:
    name: Linux Test
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@master
    - name: Run ShellCheck
      uses: ludeeus/[email protected]
    - name: Syntax Testing
      # -n : read  commands  but  do  not  execute  them.  This may be used to check a shell script for syntax errors.  This is ignored by interactive shells.
      run : |
          bash -n dotman.sh
          sh -n tools/install.sh   

This can be done using Bash's official Docker 🐬 Image. Also, this SO thread can help

Bhupesh-V avatar Oct 24 '20 06:10 Bhupesh-V

Hey,

I will work on it.

Best regards, fi-do

fi-do avatar Jan 30 '22 22:01 fi-do