-
Notifications
You must be signed in to change notification settings - Fork 78
104 lines (83 loc) · 2.43 KB
/
push.yml
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
103
104
name: Build for win and linux
on:
push:
env:
GO_VERSION: "1.21"
NODE_VERSION: "18"
PNPM_VERSION: "8.6.1"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
cache-dependency-path: frontend
- name: Install additional dependencies
run: |
sudo apt update
sudo apt -y install libgtk-3-dev libwebkit2gtk-4.0-dev nsis
- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: Run GoReleaser Snapshot
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --snapshot -p 1 --clean # Multiple Wails builds cannot be executed in parallel
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: all-builds
path: dist/**/*
lint-backend:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: golangci/golangci-lint-action@v3
with:
version: v1.54
only-new-issues: true
skip-pkg-cache: true
skip-build-cache: true
lint-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: pnpm/action-setup@v2
with:
version: ${{ env.PNPM_VERSION }}
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
cache-dependency-path: frontend
- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: Generate wails bindings
run: wails generate module
- name: Install dependencies
working-directory: frontend
run: pnpm install
- name: Lint
working-directory: frontend
run: |
pnpm lint
pnpm check