Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI config #81

Merged
merged 5 commits into from
Apr 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI

on:
push:
branches:
- master
- 'v*'
pull_request: {}
schedule:
- cron: '0 3 * * *' # daily, at 3am

jobs:
test:
name: Node 12.x - ubuntu
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1

- name: install dependencies
run: yarn install --frozen-lockfile

- run: yarn lint
- run: yarn test

nodeX:
name: Node ${{ matrix.node-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 10

needs: [test]

strategy:
matrix:
os: [ubuntu, windows]
node-version: [10.x, 12.x, 13.x, 14.x]

# excluded because it is the `test` job above
exclude:
- os: ubuntu
node-version: 12.x

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node-version }}

- name: install dependencies
run: yarn install --frozen-lockfile --ignore-engines

- run: yarn test

floating-dependencies:
name: Floating Dependencies
runs-on: ubuntu-latest
timeout-minutes: 10

needs: [test]

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 12.x

- name: install dependencies
run: yarn install --no-lockfile

- run: yarn test
3 changes: 3 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"line-length": false
}
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions docs/rules/prettier.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## prettier
# prettier

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

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.

### Related Rules
## Related Rules

- [prettier](https://github.com/prettier/eslint-plugin-prettier) from prettier for eslint
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"main": "ember-template-lint-plugin-prettier.js",
"scripts": {
"changelog": "lerna-changelog",
"lint": "npm-run-all lint:* --continue-on-error",
"lint:docs": "markdownlint 'docs/**/*.md'",
"lint:js": "eslint . --cache",
"test": "mocha --recursive",
"format": "yarn prettier '**/*.{hbs,js,json,yml}' --write"
Expand All @@ -36,13 +38,19 @@
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.0",
"lerna-changelog": "^1.0.0",
"markdownlint-cli": "^0.22.0",
"mocha": "^7.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.0"
},
"engines": {
"node": "10.* || >= 12.*"
},
"dependencies": {
"prettier-linter-helpers": "^1.0.0"
},
"volta": {
"node": "12.16.3",
"yarn": "1.22.4"
}
}
Loading