-
Notifications
You must be signed in to change notification settings - Fork 97
40 lines (32 loc) · 781 Bytes
/
main.yml
File metadata and controls
40 lines (32 loc) · 781 Bytes
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
38
39
40
name: CI
on:
push:
pull_request:
env:
GIT_EMAIL: ci@mail
GIT_NAME: ci
jobs:
build:
runs-on: onec-linux
steps:
- uses: actions/checkout@v2
- name: Setup Onescript
run: ovm use dev
- name: Config env
run: |
git config --global user.name $GIT_EMAIL
git config --global user.email $GIT_NAME
# Runs a single command using the runners shell
- name: Install dependencies
run: |
opm install -l
opm install -l 1bdd 1testrunner coverage
# Runs a set of commands using the runners shell
- name: Run tests
run: |
oscript ./tasks/coverage.os
- name: Codecov
uses: codecov/codecov-action@v1.0.7
if: always()
with:
file: ./coverage/coverage.xml