Skip to content

Commit 3f83e0a

Browse files
committed
👷 Switch to GitHub CI
1 parent d7eee40 commit 3f83e0a

File tree

4 files changed

+39
-15
lines changed

4 files changed

+39
-15
lines changed

.github/workflows/CI.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
validate:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Use Node.js (lts/*)
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: lts/*
22+
cache: 'npm'
23+
24+
- name: npm ci
25+
run: npm ci
26+
27+
- name: Validate
28+
run: npm run validate

.travis.yml

-6
This file was deleted.

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Custom New Tab Page [![Build Status](https://travis-ci.org/MethodGrab/firefox-custom-new-tab-page.svg?branch=master)](https://travis-ci.org/MethodGrab/firefox-custom-new-tab-page)
1+
# Custom New Tab Page
22

3-
[![Version](https://img.shields.io/amo/v/custom-new-tab-page)][amo]
4-
[![Rating](https://img.shields.io/amo/rating/custom-new-tab-page)][amo]
5-
[![Users](https://img.shields.io/amo/users/custom-new-tab-page)][amo]
6-
[![Downloads](https://img.shields.io/amo/dw/custom-new-tab-page)][amo]
3+
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/MethodGrab/firefox-custom-new-tab-page/CI?style=flat-square)](https://github.com/MethodGrab/firefox-custom-new-tab-page/actions/workflows/CI.yaml)
4+
[![Version](https://img.shields.io/amo/v/custom-new-tab-page?style=flat-square)][amo]
5+
[![Rating](https://img.shields.io/amo/rating/custom-new-tab-page?style=flat-square)][amo]
6+
[![Users](https://img.shields.io/amo/users/custom-new-tab-page?style=flat-square)][amo]
7+
[![Downloads](https://img.shields.io/amo/dw/custom-new-tab-page?style=flat-square)][amo]
78

89
> A Firefox extension that allows you to specify a custom URL to be shown when opening a new tab, _without changing the address bar content_.
910

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
"url"
1616
],
1717
"scripts": {
18-
"test": "npm run lint && npm run lint-ext",
19-
"lint": "eslint --max-warnings 0 \"**/*.js\"",
20-
"lint-ext": "web-ext lint --source-dir src",
18+
"lint": "npm run lint:code && npm run lint:ext",
19+
"lint:code": "eslint --max-warnings 0 \"**/*.js\"",
20+
"lint:ext": "web-ext lint --source-dir src",
21+
"package": "web-ext build --source-dir src --ignore-files .DS_Store",
2122
"start": "web-ext run --source-dir src --firefox=firefoxdeveloperedition",
22-
"package": "web-ext build --source-dir src --ignore-files .DS_Store"
23+
"validate": "npm run lint"
2324
},
2425
"devDependencies": {
2526
"@methodgrab/eslint-config-standard": "^0.10.0",

0 commit comments

Comments
 (0)