Skip to content

Update workflow

Update workflow #68

Workflow file for this run

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:
types: opened
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]

Check failure on line 19 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
- name: Syntax Testing
# -n : ead 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
- name: Test on Bash 3
run: |
docker run -v "$PWD:/mnt" bash:3 bash -n /mnt/dotman.sh
- name: Test on Bash 4
run: |
docker run -v "$PWD:/mnt" bash:4 bash -n /mnt/dotman.sh
- name: Test on Bash 5
run: |
docker run -v "$PWD:/mnt" bash:5 bash -n /mnt/dotman.sh