mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-04-25 10:50:29 +02:00
8ba2e0ad64
With that bump minimum required version to Go 1.13.
46 lines
959 B
YAML
46 lines
959 B
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"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v2
|
|
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
|