-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (52 loc) · 1.81 KB
/
Copy pathvalidate.yml
File metadata and controls
64 lines (52 loc) · 1.81 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
name: Validate
on:
workflow_call:
pull_request:
push:
branches:
- develop
- beta
jobs:
validate:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run Checks
run: bun check
- name: Build
run: bun run build
validate-firefox-sources:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build and create Firefox sources
run: bun run zip:fox
- name: Extract version
run: |
VERSION=$(bun --print 'require("./package.json").version')
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
- name: Extract and validate sources
run: |
cd .output
mkdir chorus-$VERSION-sources
cd chorus-$VERSION-sources
unzip -q ../chorus-$VERSION-sources.zip
bun install --frozen-lockfile
bun run build:fox
- name: Compare builds
run: |
diff -r .output/firefox-mv3 .output/chorus-$VERSION-sources/.output/firefox-mv3
if [ $? -eq 0 ]; then
echo "✅ Firefox source validation passed - builds are identical"
else
echo "❌ Firefox source validation failed - builds differ"
exit 1
fi