Add ci #2
This file contains hidden or 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: Test and coverage | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 2 | |
| - uses: actions/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| - name: Install Ruby dependencies | |
| run: bundle update --bundler && bundle install | |
| - name: Install shunit2 | |
| run: sudo apt install -y shunit2 | |
| - name: Run script | |
| run: bashcov test/test_modified_branch_files_test.sh && bashcov test/open_coverage_test.sh | |
| - name: Upload reports to Codecov | |
| uses: codecov/codecov-action@v2 |