|
| 1 | +name: pipeline |
| 2 | +on: [push, pull_request] |
| 3 | + |
| 4 | +jobs: |
| 5 | + bundler: |
| 6 | + runs-on: ubuntu-latest |
| 7 | + strategy: |
| 8 | + matrix: |
| 9 | + ruby: [ '2.6', '2.7', '3.0', 'head' ] |
| 10 | + name: Bundler Test on Ruby ${{ matrix.ruby }} |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v2 |
| 13 | + - name: Set up Ruby ${{ matrix.ruby }} |
| 14 | + uses: ruby/setup-ruby@v1 |
| 15 | + with: |
| 16 | + ruby-version: ${{ matrix.ruby }} |
| 17 | + - name: Run Bundle Install |
| 18 | + run: bundle install |
| 19 | + - name: Run Bundle Exec rake |
| 20 | + run: bundle exec rake |
| 21 | + reek: |
| 22 | + runs-on: ubuntu-latest |
| 23 | + strategy: |
| 24 | + matrix: |
| 25 | + ruby: [ '2.6', '2.7', '3.0', 'head' ] |
| 26 | + name: Reek Test on Ruby ${{ matrix.ruby }} |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v2 |
| 29 | + - name: Set up Ruby ${{ matrix.ruby }} |
| 30 | + uses: ruby/setup-ruby@v1 |
| 31 | + with: |
| 32 | + ruby-version: ${{ matrix.ruby }} |
| 33 | + - name: Run Reek |
| 34 | + run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/reek/master/pipeline.sh) |
| 35 | + rubocop: |
| 36 | + runs-on: ubuntu-latest |
| 37 | + strategy: |
| 38 | + matrix: |
| 39 | + ruby: [ '2.6', '2.7', '3.0', 'head' ] |
| 40 | + name: Rubocop Test on Ruby ${{ matrix.ruby }} |
| 41 | + steps: |
| 42 | + - uses: actions/checkout@v2 |
| 43 | + - name: Set up Ruby ${{ matrix.ruby }} |
| 44 | + uses: ruby/setup-ruby@v1 |
| 45 | + with: |
| 46 | + ruby-version: ${{ matrix.ruby }} |
| 47 | + - name: Run Rubocop |
| 48 | + run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/rubocop/master/pipeline.sh) |
| 49 | + awesomebot: |
| 50 | + name: Awesomebot |
| 51 | + runs-on: ubuntu-latest |
| 52 | + steps: |
| 53 | + - uses: actions/checkout@v2 |
| 54 | + - name: Set up Ruby 3.0 |
| 55 | + uses: ruby/setup-ruby@v1 |
| 56 | + with: |
| 57 | + ruby-version: 3.0 |
| 58 | + - name: Run Awesomebot |
| 59 | + env: |
| 60 | + FLAGS: "default" |
| 61 | + EXCLUDE_FILES: "CHANGELOG.md" |
| 62 | + WHITELIST: "https://img.shields.io" |
| 63 | + run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/awesomebot/master/pipeline.sh) |
| 64 | + shellcheck: |
| 65 | + name: ShellCheck |
| 66 | + runs-on: ubuntu-latest |
| 67 | + steps: |
| 68 | + - uses: actions/checkout@v2 |
| 69 | + - name: Run Shellcheck |
| 70 | + run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/shellcheck/master/pipeline.sh) |
| 71 | + yaml-lint: |
| 72 | + name: YAML Lint |
| 73 | + runs-on: ubuntu-latest |
| 74 | + steps: |
| 75 | + - uses: actions/checkout@v2 |
| 76 | + - name: Set up Ruby 3.0 |
| 77 | + uses: ruby/setup-ruby@v1 |
| 78 | + with: |
| 79 | + ruby-version: 3.0 |
| 80 | + - name: Run YAML-Lint |
| 81 | + run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/yaml-lint/master/pipeline.sh) |
| 82 | + slack-workflow-status: |
| 83 | + if: always() |
| 84 | + name: Slack Post Workflow Notification |
| 85 | + needs: |
| 86 | + - bundler |
| 87 | + - reek |
| 88 | + - rubocop |
| 89 | + - awesomebot |
| 90 | + - shellcheck |
| 91 | + - yaml-lint |
| 92 | + runs-on: ubuntu-latest |
| 93 | + steps: |
| 94 | + - name: Slack Post Workflow Notification |
| 95 | + uses: Gamesight/slack-workflow-status@master |
| 96 | + with: |
| 97 | + include_jobs: true |
| 98 | + repo_token: ${{secrets.GITHUB_TOKEN}} |
| 99 | + slack_webhook_url: ${{secrets.SLACK_WEBHOOK_URL}} |
0 commit comments