Correct serial number group for DHL express numbers #108
Workflow file for this run
This file contains 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: Tests | |
on: | |
push: | |
pull_request: | |
concurrency: | |
group: ci-tests-${{ github.ref }}-1 | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Run Tests | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest ] | |
ruby: [ '2.7' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Bundle Install | |
run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
- name: Run RSpec | |
run: bundle exec rspec -f j -o tmp/rspec_results.json -f p | |
- name: RSpec Report | |
uses: SonicGarden/rspec-report-action@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
json-path: tmp/rspec_results.json | |
if: always() | |
publish: | |
name: Release | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
needs: [test] | |
steps: | |
- name: Dispatch Release | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: Generate New Release | |
token: ${{ secrets.GITHUB_TOKEN }} |