Add MPTCP support #361
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: ['*'] | |
tags: ['v*'] | |
pull_request: | |
branches: ['**'] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
GOPATH: ${{ github.workspace }} | |
GOBIN: ${{ github.workspace }}/bin | |
defaults: | |
run: | |
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} | |
strategy: | |
matrix: | |
go: ["1.21.x"] | |
include: | |
- go: 1.21.x | |
latest: true | |
COVERAGE: "yes" | |
LINT: "yes" | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} | |
- name: Load cache | |
uses: actions/cache@v1 | |
with: | |
path: ~/.glide/cache | |
key: ${{ runner.os }}-go-${{ hashFiles('**/glide.lock') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Install CI | |
run: make install_ci | |
- name: Test CI | |
env: | |
NO_TEST: ${{ matrix.NO_TEST }} | |
run: test -n "$NO_TEST" || make test_ci | |
- name: Cover CI | |
env: | |
COVERAGE: ${{ matrix.COVERAGE }} | |
run: test -z "$COVERAGE" || make cover_ci | |
- name: Lint CI | |
env: | |
LINT: ${{ matrix.LINT }} | |
run: test -z "$LINT" || make install_lint lint | |
- name: Crossdock CI | |
run: make crossdock_logs_ci |