Create workflows that test different integrations from demo project #4
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: Test Coverage-Reporter | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build_and_test: | |
name: Build and Test | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
arch: [x86_64, aarch64] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7.7 | |
bundler-cache: true | |
- name: Run Tests | |
run: bundle exec rspec | |
- name: Test on x86_64 | |
if: matrix.arch == 'x86_64' | |
run: | | |
curl -sL https://github.com/coverallsapp/coverage-reporter/actions/runs/10950279748/artifacts/1955825113 | |
./coveralls-linux-x86_64 | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test on aarch64 | |
if: matrix.arch == 'aarch64' | |
run: | | |
curl -sL https://github.com/coverallsapp/coverage-reporter/actions/runs/10950279748/artifacts/1955825110 | |
./coveralls-linux-aarch64 | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} |