Skip to content

Commit

Permalink
feat: add github actions #91
Browse files Browse the repository at this point in the history
  • Loading branch information
mercs600 committed Mar 29, 2021
1 parent f2f63ca commit b796b49
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 39 deletions.
38 changes: 0 additions & 38 deletions .circleci/config.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on: [push, pull_request]

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 12
- run: yarn --frozen-lockfile

- name: Commitlint
run: yarn commitlint

- name: Eslint
run: git log -1 --pretty=format:"%s" | yarn commitlint
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"lint": "eslint --ignore-pattern '/lib/templates/plugins' --ext .js,.vue example lib test",
"lintfix": "eslint --fix --ext .js,.vue --ignore-pattern '/lib/templates/plugins' --ignore-path .gitignore .",
"test": "yarn lint && jest",
"commitlint": "commitlint --verbose",
"release": "yarn test && standard-version && git push --follow-tags && npm publish"
},
"files": [
Expand Down
1 change: 0 additions & 1 deletion test/module.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ describe('module', () => {

test('render', async () => {
const html = await get('/')
console.log(html)
expect(html).toContain('page')
})
})

0 comments on commit b796b49

Please sign in to comment.