Skip to content

Commit eb3ca17

Browse files
authored
Merge pull request #92 from postcss/actions
chore: migrate to github actions
2 parents 11a4436 + b6713db commit eb3ca17

5 files changed

Lines changed: 62 additions & 1440 deletions

File tree

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
# https://github.com/actions/checkout/releases/tag/v6.0.3
14+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
15+
# https://github.com/actions/setup-node/releases/tag/v6.4.0
16+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
17+
with:
18+
node-version: 24
19+
- run: yarn install --frozen-lockfile
20+
- run: yarn lint
21+
22+
test:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
node-version: [8, 10, 12, 24]
27+
steps:
28+
# https://github.com/actions/checkout/releases/tag/v6.0.3
29+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
30+
# https://github.com/actions/setup-node/releases/tag/v6.4.0
31+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
- run: yarn install --frozen-lockfile
35+
- 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)