ci: update github's workflow
This commit is contained in:
		
							
								
								
									
										7
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,7 +0,0 @@ | ||||
| version: 2 | ||||
|  | ||||
| updates: | ||||
|   - package-ecosystem: "npm" | ||||
|     directory: "/" | ||||
|     schedule: | ||||
|       interval: "weekly" | ||||
							
								
								
									
										26
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| name: Build tests | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: [develop] | ||||
|   pull_request: | ||||
|     branches: [main, develop] | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v3.0.0 | ||||
|  | ||||
|       - name: Use Node.js | ||||
|         uses: actions/setup-node@v3.1.1 | ||||
|         with: | ||||
|           node-version: 16.x | ||||
|  | ||||
|       - name: Install packages | ||||
|         run: npm ci | ||||
|  | ||||
|       - name: Build project | ||||
|         run: npm run build | ||||
							
								
								
									
										32
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| name: 'Lint tests' | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: [develop] | ||||
|   pull_request: | ||||
|     branches: [main, develop] | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v3.0.0 | ||||
|  | ||||
|       - name: Use Node.js | ||||
|         uses: actions/setup-node@v3.1.1 | ||||
|         with: | ||||
|           node-version: 16.x | ||||
|  | ||||
|       - name: Install packages | ||||
|         run: npm ci | ||||
|  | ||||
|       - name: Next.js linting | ||||
|         run: npm run lint:next | ||||
|  | ||||
|       - name: Prettier linting | ||||
|         run: npm run lint:prettier | ||||
|  | ||||
|       - name: Stylelint linting | ||||
|         run: npm run lint:scss | ||||
							
								
								
									
										28
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| name: 'Release version' | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: [main] | ||||
|  | ||||
| jobs: | ||||
|   release: | ||||
|     runs-on: ubuntu-latest | ||||
|     if: ${{ github.ref == 'refs/heads/master' }} | ||||
|     needs: [quality] | ||||
|     steps: | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v3.0.0 | ||||
|  | ||||
|       - name: Use Node.js | ||||
|         uses: actions/setup-node@v3.1.1 | ||||
|         with: | ||||
|           node-version: 16.x | ||||
|  | ||||
|       - name: Install packages | ||||
|         run: npm ci | ||||
|  | ||||
|       - name: Release project | ||||
|         run: npm run release | ||||
|         env: | ||||
|           NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
		Reference in New Issue
	
	Block a user