-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move CI to github actions * use covertool and codecov github action
- Loading branch information
1 parent
fcb05dc
commit 725b7f1
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Common Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'master' | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
otp_version: ['23.0.2', '22.3.4.2', '21.3.8.16'] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: gleam-lang/setup-erlang@v1.0.0 | ||
with: | ||
otp-version: ${{ matrix.otp_version }} | ||
|
||
- name: Compile | ||
run: rebar3 compile | ||
- name: EUnit tests | ||
run: rebar3 eunit | ||
- name: Dialyzer | ||
run: rebar3 dialyzer | ||
- name: XRef | ||
run: rebar3 xref | ||
- name: Covertool | ||
run: rebar3 covertool generate | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: _build/test/covertool/opentelemetry.covertool.xml |
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