Skip to content

Commit 5e40302

Browse files
authored
Merge pull request #81 from ember-template-lint/swith-actions
Update CI config
2 parents 98350ec + d0e7f00 commit 5e40302

6 files changed

Lines changed: 468 additions & 49 deletions

File tree

.github/workflows/ci.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'v*'
8+
pull_request: {}
9+
schedule:
10+
- cron: '0 3 * * *' # daily, at 3am
11+
12+
jobs:
13+
test:
14+
name: Node 12.x - ubuntu
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: volta-cli/action@v1
21+
22+
- name: install dependencies
23+
run: yarn install --frozen-lockfile
24+
25+
- run: yarn lint
26+
- run: yarn test
27+
28+
nodeX:
29+
name: Node ${{ matrix.node-version }} - ${{ matrix.os }}
30+
runs-on: ${{ matrix.os }}-latest
31+
timeout-minutes: 10
32+
33+
needs: [test]
34+
35+
strategy:
36+
matrix:
37+
os: [ubuntu, windows]
38+
node-version: [10.x, 12.x, 13.x, 14.x]
39+
40+
# excluded because it is the `test` job above
41+
exclude:
42+
- os: ubuntu
43+
node-version: 12.x
44+
45+
steps:
46+
- uses: actions/checkout@v2
47+
- uses: volta-cli/action@v1
48+
with:
49+
node-version: ${{ matrix.node-version }}
50+
51+
- name: install dependencies
52+
run: yarn install --frozen-lockfile --ignore-engines
53+
54+
- run: yarn test
55+
56+
floating-dependencies:
57+
name: Floating Dependencies
58+
runs-on: ubuntu-latest
59+
timeout-minutes: 10
60+
61+
needs: [test]
62+
63+
steps:
64+
- uses: actions/checkout@v2
65+
- uses: volta-cli/action@v1
66+
with:
67+
node-version: 12.x
68+
69+
- name: install dependencies
70+
run: yarn install --no-lockfile
71+
72+
- run: yarn test

.markdownlint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"line-length": false
3+
}

.travis.yml

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

docs/rules/prettier.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
## prettier
1+
# prettier
22

33
Runs [Prettier](https://github.com/prettier/prettier) as a rule. If the code matches prettier output, no issue is raised.
44

55
It will use the project's local version of Prettier. Note that `prettier` and `ember-template-lint` are required as peerDependencies of the package that bundles this prettier rule.
66

7-
### Related Rules
7+
## Related Rules
88

99
- [prettier](https://github.com/prettier/eslint-plugin-prettier) from prettier for eslint

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"main": "ember-template-lint-plugin-prettier.js",
1818
"scripts": {
1919
"changelog": "lerna-changelog",
20+
"lint": "npm-run-all lint:* --continue-on-error",
21+
"lint:docs": "markdownlint 'docs/**/*.md'",
2022
"lint:js": "eslint . --cache",
2123
"test": "mocha --recursive",
2224
"format": "yarn prettier '**/*.{hbs,js,json,yml}' --write"
@@ -36,13 +38,19 @@
3638
"eslint-plugin-node": "^11.0.0",
3739
"eslint-plugin-prettier": "^3.1.0",
3840
"lerna-changelog": "^1.0.0",
41+
"markdownlint-cli": "^0.22.0",
3942
"mocha": "^7.0.1",
43+
"npm-run-all": "^4.1.5",
4044
"prettier": "^1.19.0"
4145
},
4246
"engines": {
4347
"node": "10.* || >= 12.*"
4448
},
4549
"dependencies": {
4650
"prettier-linter-helpers": "^1.0.0"
51+
},
52+
"volta": {
53+
"node": "12.16.3",
54+
"yarn": "1.22.4"
4755
}
4856
}

0 commit comments

Comments
 (0)