name: 'USPS iMIS API - Ruby' on: push: workflow_dispatch: jobs: rubocop: runs-on: ubuntu-24.04 environment: "USPS iMIS API - Ruby" steps: - name: Checkout Code uses: actions/checkout@v4 - name: Setup Ruby uses: ruby/setup-ruby@v1 with: { bundler-cache: true } - name: Run Rubocop run: bundle exec rubocop rspec: runs-on: ubuntu-24.04 environment: "USPS iMIS API - Ruby" env: IMIS_USERNAME: ${{ secrets.IMIS_USERNAME }} IMIS_PASSWORD: ${{ secrets.IMIS_PASSWORD }} IMIS_ID_QUERY_NAME: ${{ secrets.IMIS_ID_QUERY_NAME }} steps: - name: Checkout Code uses: actions/checkout@v4 - name: Setup Ruby uses: ruby/setup-ruby@v1 with: { bundler-cache: true } - name: Run Rspec run: bundle exec rspec --format documentation --order rand --color --tty - name: Store Coverage uses: actions/upload-artifact@v4 with: name: coverage-rspec include-hidden-files: true path: coverage/