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 602c09a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 39 deletions.
38 changes: 0 additions & 38 deletions .circleci/config.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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

- 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: yarn lint
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 --from HEAD~1",
"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 602c09a

Please sign in to comment.