Skip to content

CD pipeline will push the package to RubyGems. #8

CD pipeline will push the package to RubyGems.

CD pipeline will push the package to RubyGems. #8

Workflow file for this run

name: Automated Tests
on: ["push"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code from repo
uses: actions/checkout@v4
- name: Log into GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build devcontainer and run tests
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/cfe-lab/gotoh_devcontainer
cacheFrom: ghcr.io/cfe-lab/gotoh_devcontainer
runCmd: cd /workspaces/gotoh/ruby && rake test
env: |
CI_COMMIT_REF=${{ github.ref_name }}
CI_COMMIT_SHA=${{ github.sha }}
CI_PIPELINE_ID=${{ github.run_id }}
CI_COMMIT_BRANCH=${{ github.ref_name }}
CI_PROJECT=${{ github.repository }}
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
root_dir: ${{ github.workspace }}
files: ${{ github.workspace }}/ruby/coverage/coverage.xml