Added a step to add the gem as an asset to the release; also streamli… #4
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: 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/ci@v0.3 | |
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 |