Merge pull request #234 from lob/feature/MI-22-address-zip-validation #68
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: Run Tests | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
ruby_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: ["3.0", "3.1"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby ${{ matrix.ruby-version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get install libyaml-dev | |
bundle install | |
- name: Run Integration Tests | |
run: | |
rspec -P __tests__/Integration/*.spec.rb --color --format doc | |
env: | |
LOB_API_TEST_KEY: ${{ secrets.LOB_API_TEST_KEY }} | |
LOB_API_LIVE_KEY: ${{ secrets.LOB_API_LIVE_KEY }} | |
- name: Run Unit Tests | |
run: | |
rspec -P __tests__/Api/*.spec.rb --color --format doc | |
env: | |
LOB_API_TEST_KEY: ${{ secrets.LOB_API_TEST_KEY }} | |
LOB_API_LIVE_KEY: ${{ secrets.LOB_API_LIVE_KEY }} |