netbird/.github/workflows/golang-test-linux.yml
Givi Khojanashvili 4ef3c7a637
Add basic desktop UI - systray
This PR adds a basic UI for desktop
applications that support Linux, Max
and Windows.
2022-03-20 17:36:35 +01:00

46 lines
1.3 KiB
YAML

name: Test Code Linux
on: [push,pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.17.x]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
# - name: update limits.d
# run: |
# cat <<'EOF' | sudo tee -a /etc/security/limits.d/wt.conf
# root soft nproc 65535
# root hard nproc 65535
# root soft nofile 65535
# root hard nofile 65535
# $(whoami) soft nproc 65535
# $(whoami) hard nproc 65535
# $(whoami) soft nofile 65535
# $(whoami) hard nofile 65535
# EOF
- name: Cache Go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt update && sudo apt install -y -q libgtk-3-dev libappindicator3-dev libayatana-appindicator3-dev
- name: Install modules
run: go mod tidy
- name: Test
run: go test -exec sudo -timeout 5m -p 1 ./...