-
-
Notifications
You must be signed in to change notification settings - Fork 12
59 lines (56 loc) · 1.64 KB
/
integration.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
name: Integration
on:
push:
branches: ['main']
pull_request:
branches: ['main']
concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
jobs:
e2e_debian:
name: E2E (debian-latest)
runs-on: ubuntu-latest
container:
image: ivangabriele/tauri:debian-bookworm-22
steps:
- name: Checkout
uses: actions/checkout@v4
# https://github.com/Swatinem/rust-cache#example-usage
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
key: integration_e2e_debian-latest
prefix-key: rust-cache
shared-key: v0
workspaces: './src-tauri -> target'
- name: Install core build requirements
run: make setup-debian
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: 'cargo,clippy,rust-docs,rust-src,rustc,rustfmt'
rustflags: ''
toolchain: '1.80'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn
node-version: 22
- name: Install Debian dependencies
run: |
apt-get update
apt-get install -y dbus-x11
- name: Install Node.js dependencies
run: yarn --frozen-lockfile
- name: Build binary
run: yarn bundle:bin
- name: Run tests
uses: nick-fields/retry@v3
with:
timeout_seconds: 600
max_attempts: 3
retry_on: error
command: |
fuser -n tcp -k 4445
yarn test:e2e