-
-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (48 loc) · 1.3 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
name: Integration
on: push
jobs:
e2e_debian:
name: E2E (debian-latest)
runs-on: ubuntu-latest
container:
image: ivangabriele/tauri:debian-bullseye-18
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
# 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: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn
node-version: 20
- name: Install Debian dependencies
run: |
apt-get update
apt-get install -y dbus-x11
- name: Install ClamAV
run: |
apt-get install -y clamav
- name: Print ClamAV version
run: clamscan -V
- name: Install Node.js dependencies
run: yarn --frozen-lockfile
- name: Build binary
run: yarn release:bin
- name: Run tests
uses: nick-fields/retry@v2
with:
timeout_seconds: 600
max_attempts: 3
retry_on: error
command: |
fuser -n tcp -k 4445
yarn test:e2e