Update README.md #9
This file contains hidden or 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: Run tests | |
| on: | |
| pull_request_target: | |
| types: | |
| - opened | |
| - edited | |
| - reopened | |
| - synchronize | |
| - review_requested | |
| branches: | |
| - 'main' | |
| - 'dev' | |
| jobs: | |
| run_tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Ruby | |
| uses: ruby/setup-ruby@v1.180.1 | |
| with: | |
| ruby-version: '3.3' | |
| - name: Checkout Bashly | |
| uses: actions/checkout@v2 | |
| with: | |
| repository: 'DannyBen/bashly' | |
| ref: 'dae0394932687b99d1d7d35685b0bb20ad9c97e2' | |
| path: 'bashly' | |
| - name: Build Bashly | |
| run: | | |
| cd bashly | |
| gem build bashly.gemspec | |
| gem install bashly-*.gem | |
| cd .. | |
| - name: Install Shellspec | |
| run: | | |
| curl -fsSL https://git.io/shellspec | sh -s 0.28.0 --yes | |
| - name: Checkout pls | |
| uses: actions/checkout@v2 | |
| with: | |
| repository: 'codevogel/pls' | |
| - name: Build pls | |
| run: | | |
| bashly generate | |
| - name: Run Shellspec | |
| run: | | |
| shellspec --shell bash --warning-as-failure -f d |