-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.42 KB
/
pull-request.yml
File metadata and controls
51 lines (39 loc) · 1.42 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
name: Pull Request
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened, closed]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-24.04
if: github.event.pull_request.merged == false
steps:
- uses: actions/checkout@v4
- name: Cache apt packages
uses: actions/cache@v4
with:
path: /var/cache/apt/archives
key: apt-gtk-${{ runner.os }}-${{ hashFiles('.github/workflows/pull-request.yml') }}
restore-keys: apt-gtk-${{ runner.os }}-
- name: Install GTK development dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libglib2.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf pkg-config
- uses: ./.github/actions/setup-node-pnpm
- name: Build
run: pnpm exec turbo run build
- uses: ./.github/actions/setup-rust
with:
cache-key: pr
- name: Generate Tauri icons
run: pnpm -F @truenine/memory-sync-gui run generate:icons
- name: Generate route tree
run: pnpm -F @truenine/memory-sync-gui run generate:routes
- name: Run tests
run: pnpm exec turbo run test
- name: Rust tests (excluding GUI)
run: cargo test --workspace --exclude memory-sync-gui --lib --bins --tests