This repository was archived by the owner on Mar 24, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
139 lines (118 loc) · 3.3 KB
/
ci.yml
File metadata and controls
139 lines (118 loc) · 3.3 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
name: CI
on:
push:
branches:
- dev
- 'jwerle/**'
- 'feature/**'
- 'fix/**'
pull_request:
workflow_dispatch:
env:
CI: true
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20.x
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
cache: false
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install actionlint
shell: bash
run: |
export GOPATH="$RUNNER_TEMP/go"
export GOCACHE="$RUNNER_TEMP/go-cache"
export GOBIN="$RUNNER_TEMP/bin"
mkdir -p "$GOPATH" "$GOCACHE" "$GOBIN"
go install github.com/rhysd/actionlint/cmd/actionlint@v1.7.11
echo "$GOBIN" >> "$GITHUB_PATH"
- name: Install cpplint
run: python -m pip install cpplint
- name: Install dependencies
run: npm install --no-audit
- name: Lint GitHub Actions workflows
run: actionlint .github/workflows/ci.yml .github/workflows/release-artifacts.yml
- name: Lint
run: npm run test:lint:ci
test-desktop-runtime-core:
name: Desktop + runtime-core tests
runs-on: ${{ matrix.os }}
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04]
node: [18.x, 20.x]
env:
ORO_TEST_HEADLESS: '1'
ORO_TEST_SKIP_DESKTOP_EXTENSION: '1'
ORO_TEST_SKIP_TEST_EXTENSIONS: '1'
NO_ANDROID: '1'
NO_IOS: '1'
DEBUG: '1'
LIBGL_ALWAYS_SOFTWARE: '1'
WEBKIT_DISABLE_COMPOSITING_MODE: '1'
GDK_BACKEND: x11
GSK_RENDERER: cairo
XDG_RUNTIME_DIR: /tmp/oro-xdg-runtime
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
clang-18 \
autoconf \
automake \
libtool \
pkg-config \
curl \
git \
libgtk-3-dev \
libwebkit2gtk-4.1-dev \
libdbus-1-dev \
libsystemd-dev \
libsoup-3.0-dev
- name: Prepare Linux headless runtime dirs
if: runner.os == 'Linux'
run: |
mkdir -p "$XDG_RUNTIME_DIR"
chmod 700 "$XDG_RUNTIME_DIR"
- name: Install root dependencies
run: npm install --no-audit
- name: Install test harness dependencies
run: |
cd test
npm install --no-audit
- name: Build Oro Runtime CLI (oroc)
run: |
VERBOSE=1 ./bin/install.sh
- name: Run desktop tests
run: npm test
- name: Run runtime-core tests
run: npm run test:runtime-core