Skip to content

Commit b18d47e

Browse files
committed
Migrate to github actions
- switched from travis to github actions - dropped husky and lint-staged (huge amount of deps) for good
1 parent 11a4436 commit b18d47e

5 files changed

Lines changed: 74 additions & 1440 deletions

File tree

.github/workflows/test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
14+
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
15+
with:
16+
node-version: 12
17+
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a
18+
with:
19+
path: |
20+
~/.cache/yarn
21+
node_modules
22+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
23+
restore-keys: |
24+
${{ runner.os }}-yarn-
25+
- run: yarn install --frozen-lockfile
26+
- run: yarn lint
27+
28+
test:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
node-version: [8, 10, 12, 24]
33+
steps:
34+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
35+
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a
39+
with:
40+
path: |
41+
~/.cache/yarn
42+
node_modules
43+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
44+
restore-keys: |
45+
${{ runner.os }}-yarn-
46+
- run: yarn install --frozen-lockfile
47+
- run: yarn test

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# postcss-value-parser
22

3-
[![Travis CI](https://travis-ci.org/TrySound/postcss-value-parser.svg)](https://travis-ci.org/TrySound/postcss-value-parser)
4-
53
Transforms CSS declaration values and at-rule parameters into a tree of nodes, and provides a simple traversal API.
64

75
## Usage

package.json

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,25 @@
88
],
99
"devDependencies": {
1010
"eslint": "^5.16.0",
11-
"husky": "^2.3.0",
12-
"lint-staged": "^8.1.7",
1311
"prettier": "^1.17.1",
1412
"tap-spec": "^5.0.0",
1513
"tape": "^4.10.2"
1614
},
1715
"scripts": {
18-
"lint:prettier": "prettier \"**/*.js\" \"**/*.ts\" --list-different",
19-
"lint:js": "eslint . --cache",
20-
"lint": "yarn lint:js && yarn lint:prettier",
21-
"pretest": "yarn lint",
16+
"format": "prettier --write \"**/*.{js,ts}\"",
17+
"lint": "eslint .",
2218
"test": "tape test/*.js | tap-spec"
2319
},
20+
"engines": {
21+
"node": "8"
22+
},
2423
"eslintConfig": {
2524
"env": {
2625
"es6": true,
2726
"node": true
2827
},
2928
"extends": "eslint:recommended"
3029
},
31-
"lint-staged": {
32-
"*.js": [
33-
"eslint",
34-
"prettier --write",
35-
"git add"
36-
]
37-
},
38-
"husky": {
39-
"hooks": {
40-
"pre-commit": "lint-staged"
41-
}
42-
},
4330
"author": "Bogdan Chadkin <trysound@yandex.ru>",
4431
"license": "MIT",
4532
"homepage": "https://github.com/TrySound/postcss-value-parser",

0 commit comments

Comments
 (0)