-
-
Notifications
You must be signed in to change notification settings - Fork 59
53 lines (41 loc) · 1.13 KB
/
ci.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
name: Yarn CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Yarn CI with Node ${{ matrix.node-version }}
runs-on: ubuntu-24.04
strategy:
matrix:
node-version:
- 20.x
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install -D
- name: Validate Formatting
run: yarn run prettier:check
- name: Validate Locale
run: yarn run check:locale
- name: Lint Extension
run: yarn run lint
- name: Build Extension
run: yarn run build
- name: Prepare Test Runner
run: |
sudo apt-get install meson gjs gir1.2-gda-5.0 gir1.2-gsound-1.0 -y
git clone https://github.com/ptomato/jasmine-gjs
cd jasmine-gjs
meson setup build
meson compile -C build
sudo meson install -C build
- name: Run Tests
run: yarn run test