mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-10 09:52:12 +02:00
028c40707f
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.5 to 2.1.6. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v2.1.5...v2.1.6) Signed-off-by: dependabot[bot] <support@github.com>
72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
name: test
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
go:
|
|
env:
|
|
MAXMIND_GEOLITE2_LICENSE: ${{ secrets.MAXMIND_GEOLITE2_LICENSE }}
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
- "1.13"
|
|
- "1.14"
|
|
- "1.15"
|
|
- "1.16"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2.3.4
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v2.1.6
|
|
with:
|
|
path: vendor/
|
|
key: vendor-${{ matrix.go-version }}-${{ hashFiles('go.mod', 'go.sum') }}
|
|
|
|
- name: Build applications
|
|
run: |
|
|
echo "Building with $(nproc) threads"
|
|
make client -j$(nproc)
|
|
make proxy -j$(nproc)
|
|
make server -j$(nproc)
|
|
|
|
- name: Run tests
|
|
run: |
|
|
make test || make test
|
|
|
|
- name: Generate coverage report
|
|
run: |
|
|
make cover || make cover
|
|
|
|
- name: Convert coverage to lcov
|
|
uses: jandelgado/gcov2lcov-action@v1.0.8
|
|
with:
|
|
infile: cover.out
|
|
outfile: cover.lcov
|
|
|
|
- name: Coveralls Parallel
|
|
uses: coverallsapp/github-action@v1.1.2
|
|
env:
|
|
COVERALLS_FLAG_NAME: run-${{ matrix.go-version }}
|
|
with:
|
|
path-to-lcov: cover.lcov
|
|
github-token: ${{ secrets.github_token }}
|
|
parallel: true
|
|
|
|
finish:
|
|
needs: go
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Coveralls Finished
|
|
uses: coverallsapp/github-action@v1.1.2
|
|
with:
|
|
github-token: ${{ secrets.github_token }}
|
|
parallel-finished: true
|