forked from apache/yunikorn-core
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (28 loc) · 891 Bytes
/
push-master.yml
File metadata and controls
30 lines (28 loc) · 891 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
name: Push to master
on:
push:
branches:
- master
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: .go_version
check-latest: true
- name: Unit tests
run: make test
- name: Code coverage
uses: codecov/codecov-action@v5
with:
files: build/coverage.txt
# After codecov/codecov-action@v4, tokenless uploading of coverage files to non-public repo is unsupported.
# To enable codecov analysis in your forked repo. Please configure CODECOV_TOKEN in your repository secrets.
# Ref: https://docs.codecov.com/docs/adding-the-codecov-token
token: ${{ secrets.CODECOV_TOKEN }}