main.yml 860 B

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. # Continuous Integration Workflow: Test case suite run + validation build check
  3. name: CI
  4. # Controls when the action will run.
  5. # Triggers the workflow on push or pull request events but only for the master branch
  6. on:
  7. push:
  8. branches: [ master ]
  9. pull_request:
  10. branches: [ master ]
  11. jobs:
  12. # Job: Unit test suite
  13. unit-tests:
  14. name: "Unit Tests"
  15. runs-on: ubuntu-latest
  16. strategy:
  17. matrix:
  18. ruby: ['2.7', '3.0', '3.1', '3.2']
  19. steps:
  20. # Install Ruby Testing Tools
  21. - name: Setup Ruby Testing Tools
  22. run: |
  23. sudo gem install rspec
  24. sudo gem install rubocop -v 1.57.2
  25. # Checks out repository under $GITHUB_WORKSPACE
  26. - name: Checkout Latest Repo
  27. uses: actions/checkout@v2
  28. # Run Tests
  29. - name: Run All Unit Tests
  30. run: |
  31. cd test && rake ci