-
Notifications
You must be signed in to change notification settings - Fork 32
48 lines (41 loc) · 1.26 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
# 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:
build:
name: "Build"
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "npm ci"
run: npm ci
- name: "commitlint pull requests"
if: ${{ github.event_name == 'pull_request' }}
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: "commitlint legacy"
if: ${{ github.event_name == 'push' }}
run: npx commitlint --from ${{ github.event.before }} --to ${{ github.event.after }} --verbose
- name: "ESLint"
run: npx eslint
- name: "Build"
run: npm run build
- name: "Upload"
uses: actions/upload-artifact@v4
with:
name: gdata-provider.xpi
path: dist/gdata-provider.xpi