File: test.yaml

package info (click to toggle)
golang-github-arduino-go-paths-helper 1.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276 kB
  • sloc: makefile: 7
file content (39 lines) | stat: -rw-r--r-- 785 bytes parent folder | download
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
name: test

on:
  push:
  pull_request:

jobs:
  test-matrix:
    strategy:
      matrix:
        operating-system:
          [
            ubuntu-latest,
            windows-latest,
            macos-latest,
          ]

    runs-on: ${{ matrix.operating-system }}

    steps:
      - name: Disable EOL conversions
        run: git config --global core.autocrlf false

      - name: Checkout
        uses: actions/checkout@v2

      - name: Install Go
        uses: actions/setup-go@v2
        with:
          go-version: "1.21"

      - name: Run unit tests
        run: go test -v ./... -coverprofile=coverage_unit.txt

      - name: Send unit tests coverage to Codecov
        uses: codecov/codecov-action@v1
        with:
          file: ./coverage_unit.txt
          flags: unit