-
Notifications
You must be signed in to change notification settings - Fork 78
63 lines (52 loc) · 1.39 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
name: Push
on:
push:
branches:
- '**'
pull_request:
jobs:
build:
uses: ./.github/workflows/build-base.yml
secrets:
SIGNPATH_API_TOKEN: ${{ secrets.SIGNPATH_API_TOKEN }}
lint-backend:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
frontend: false
skip-wails: true
- name: Create frontend/build embed directory
run: |
mkdir -p frontend/build
echo "" > frontend/build/.gitkeep
- uses: golangci/golangci-lint-action@v4
with:
version: v1.61
only-new-issues: true
skip-pkg-cache: true
skip-build-cache: true
lint-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Generate wails bindings
run: |
# Apparently only wails build generates the embedded directory
mkdir -p frontend/build
touch frontend/build/.gitkeep
wails generate module
- name: Install dependencies
working-directory: frontend
run: pnpm install
- name: Lint
working-directory: frontend
run: |
pnpm lint
pnpm check