-
Notifications
You must be signed in to change notification settings - Fork 44
102 lines (84 loc) · 2.34 KB
/
test.yml
File metadata and controls
102 lines (84 loc) · 2.34 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
on:
pull_request:
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE'
- '.gitignore'
name: Test
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-go@v6
with:
go-version: '1.26.1'
cache: true
cache-dependency-path: go.sum
- uses: golangci/golangci-lint-action@v9
with:
version: v2.11.4
- name: Install Dependencies
shell: bash
run: make install-shellcheck
- name: Lint Shell Scripts
run: make lint-shell
- name: Check Format and Run Tests
run: make check
- name: Setup SSH Key, Build and Run E2E
shell: bash
run: |
set -e
sudo ./ci_scripts/create-ip-aliases.sh
make e2e-build
make e2e-run
env:
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Test E2E
run: make e2e-test
- name: Clean E2E
run: make e2e-stop
darwin:
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: '1.26.1'
cache: true
cache-dependency-path: go.sum
- uses: golangci/golangci-lint-action@v9
with:
version: v2.11.4
- name: Checking Format and Testing
run: |
GO111MODULE=on golangci-lint run -c .golangci.yml ./...
go run . --help
go run . cli config gen -dnw
go run . cli config gen --nofetch -nw
GO111MODULE=on go test -cover -timeout=5m -mod=vendor -tags 'no_ci' ./internal/... ./pkg/... ./cmd/skywire-cli/commands/config/...
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: '1.26.1'
cache: true
cache-dependency-path: go.sum
- uses: golangci/golangci-lint-action@v9
with:
version: v2.11.4
- name: Install Requirements
shell: pwsh
run: choco install make
- name: Checking (lint + test)
run: |
$env:GO111MODULE='on'
make check-windows
shell: powershell