forked from rickypc/native-messaging-host
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 827 Bytes
/
build.yml
File metadata and controls
27 lines (26 loc) · 827 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
# build.yml - Github actions for Native Messaging Host build.
# Copyright (c) 2018 - 2022 Richard Huang <rickypc@users.noreply.github.com>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
name: Build
on:
push:
branches:
- master
jobs:
build:
name: Test, Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.15'
- name: Check code functionality
run: go test -race -coverprofile=coverage.txt -covermode=atomic
- name: Send coverage
run: bash <(curl -s https://codecov.io/bash)