forked from webviewjs/webview
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.24 KB
/
lint.yml
File metadata and controls
62 lines (50 loc) · 1.24 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
52
53
54
55
56
57
58
59
60
61
62
name: Lint
on:
push:
branches:
- main
tags-ignore:
- '**'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libglib2.0-dev pkg-config xvfb
- name: Install dependencies
run: bun install
- name: ESLint
run: bun run lint
- name: Cargo fmt
run: cargo fmt -- --check
- name: Clippy
run: bun run clippy
- name: Cargo check
run: bun run check
- name: Build native binding
run: bun run build
- name: Run tests
env:
NO_AT_BRIDGE: 1
GDK_BACKEND: x11
run: xvfb-run -a bun run test