forked from open-webui/open-webui
		
	Merge pull request #13 from coolaj86/chore-fmt
chore: add fmt to github actions
This commit is contained in:
		
						commit
						f689bdf2cd
					
				
					 5 changed files with 93 additions and 64 deletions
				
			
		
							
								
								
									
										25
									
								
								.github/workflows/node.js.yaml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/node.js.yaml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | ||||||
|  | name: Node.js CI | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     branches: ['main'] | ||||||
|  |   pull_request: | ||||||
|  | jobs: | ||||||
|  |   build: | ||||||
|  |     name: 'Fmt, Lint, & Build' | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     strategy: | ||||||
|  |       matrix: | ||||||
|  |         node-version: | ||||||
|  |           - latest | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v3 | ||||||
|  |       - name: Use Node.js ${{ matrix.node-version }} | ||||||
|  |         uses: actions/setup-node@v3 | ||||||
|  |         with: | ||||||
|  |           node-version: ${{ matrix.node-version }} | ||||||
|  |       - run: node --version | ||||||
|  |       - run: npm clean-install | ||||||
|  |       - run: npm run fmt | ||||||
|  |         #- run: npm run lint | ||||||
|  |         #- run: npm run lint:types | ||||||
|  |       - run: npm run build | ||||||
|  | @ -8,8 +8,12 @@ | ||||||
| 		"preview": "vite preview", | 		"preview": "vite preview", | ||||||
| 		"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | 		"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||||||
| 		"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | 		"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||||||
| 		"lint": "prettier --plugin-search-dir . --check . && eslint .", | 		"lint": "npm run eslint", | ||||||
| 		"format": "prettier --plugin-search-dir . --write ." | 		"lint:types": "npm run check", | ||||||
|  | 		"fmt": "npm run prettier:svelte && npm run prettier", | ||||||
|  | 		"eslint": "npx -p eslint@8 -- eslint .", | ||||||
|  | 		"prettier:svelte": "npx -p prettier@2 -- prettier --plugin-search-dir . --write .", | ||||||
|  | 		"prettier": "npx -p prettier@2 -- prettier --write '**/*.{js,css,md,html,json}'" | ||||||
| 	}, | 	}, | ||||||
| 	"devDependencies": { | 	"devDependencies": { | ||||||
| 		"@sveltejs/adapter-auto": "^2.0.0", | 		"@sveltejs/adapter-auto": "^2.0.0", | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| export default { | export default { | ||||||
| 	plugins: { | 	plugins: { | ||||||
| 		tailwindcss: {}, | 		tailwindcss: {}, | ||||||
|     autoprefixer: {}, | 		autoprefixer: {} | ||||||
|   }, |  | ||||||
| 	} | 	} | ||||||
|  | }; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Jaeryang Baek
						Timothy Jaeryang Baek