Skip to content

Commit f8b5e84

Browse files
authored
added github actions configuration (#2)
* added github actions configuration
1 parent bb13398 commit f8b5e84

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/workflow.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: CI
2+
'on':
3+
- pull_request
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Install modules
10+
run: yarn
11+
- name: Run ESLint
12+
run: yarn run lint
13+
- name: Run Jest
14+
run: yarn run test

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "rollup -c -w",
77
"start": "sirv public",
88
"validate": "svelte-check",
9-
"lint": "eslint --fix './src/**/*.{js,ts,svelte}'",
9+
"lint": "eslint './src/**/*.{js,ts,svelte}'",
10+
"lint:fix": "eslint --fix './src/**/*.{js,ts,svelte}'",
1011
"test": "jest",
1112
"storybook": "start-storybook -p 6006",
1213
"build-storybook": "build-storybook"

0 commit comments

Comments
 (0)