trombik/qansible

View on GitHub
.github/workflows/build.yml

Summary

Maintainability
Test Coverage
---
name: build
on:
  - pull_request
  - push
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Install ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.0
          bundler-cache: true

      - name: Setup git-config
        run: |
          git config --global user.email "you@example.com"
          git config --global user.name "Your Name"
          git config --global init.defaultBranch master

      - name: Run rake
        # XXX allocate (dumb) tty to the process, so that STDOUT.tty? works in
        # the test
        shell: 'script -q -e -c "bash {0}"'
        run: |
          bundle exec rake

      - name: Try rake install
        run: |
          bundle exec rake install