-
Notifications
You must be signed in to change notification settings - Fork 32
72 lines (64 loc) · 1.65 KB
/
legacy.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Portions Copyright (C) Philipp Kewisch
---
name: "Legacy Checkin"
on:
push:
branches:
- legacy
pull_request:
branches:
- legacy
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: "npm ci"
run: npm ci
- name: "Commit lint"
run: npx commitlint --from $GITHUB_SHA^
- name: "ESLint"
run: npx eslint --ext jsm --ext js .
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Build"
run: npm run build
- name: "Upload"
uses: actions/upload-artifact@v4
with:
name: gdata-provider.xpi
path: dist/gdata-provider.xpi
# Tests are currently broken, see head of test_gdata_provider.js
# test:
# name: "Tests"
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: "Checkout"
# uses: actions/checkout@v4
#
# - name: "Download Build Artifact"
# uses: actions/download-artifact@v4
# with:
# name: gdata-provider.xpi
# path: dist
#
# - name: "Run Tests"
# uses: kewisch/action-thunderbird-tests@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# channel: nightly
# xpcshell: test/xpcshell/xpcshell.ini