-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.11 KB
/
unit_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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