- 
                Notifications
    You must be signed in to change notification settings 
- Fork 415
lab_work 1 #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Open
      
      
            mihan-pro
  wants to merge
  11
  commits into
  EPAM-JS-Competency-center:main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
mihan-pro:main
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
  
     Open
                    lab_work 1 #134
Changes from 7 commits
      Commits
    
    
            Show all changes
          
          
            11 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      59e4c62
              
                First part of lab work
              
              
                mihan-pro df5fe39
              
                part two
              
              
                mihan-pro b88731b
              
                temp
              
              
                mihan-pro fdd87f1
              
                add more functionality
              
              
                mihan-pro aabeef5
              
                fix adding config var
              
              
                mihan-pro 500ea30
              
                fix adding config var
              
              
                mihan-pro 5d8e217
              
                ci_pipeline.yml
              
              
                mihan-pro 0991643
              
                fix: pipeline
              
              
                mihan-pro 596600e
              
                fix: fix test in pipline
              
              
                mihan-pro 173d388
              
                fix/only node 18 in piplene
              
              
                mihan-pro fe4900c
              
                fix node version
              
              
                mihan-pro File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Node.js CI | ||
|  | ||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
|  | ||
| jobs: | ||
| build: | ||
|  | ||
| runs-on: ubuntu-latest | ||
|  | ||
| strategy: | ||
| matrix: | ||
| node-version: [14.x, 16.x, 18.x] | ||
| # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|  | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: 'npm' | ||
| - name: Yarn CLI | ||
| uses: CultureHQ/[email protected] | ||
| - run: yarn build | ||
| - run: yarn test | ||
| - run: yarn lint | ||
| - run: yarn check-deps | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #!/bin/bash | ||
|  | ||
| echo "Start getting modules"; | ||
| npm install; | ||
| echo "Start build process"; | ||
| if [ -z $1 ] | ||
| then | ||
| npm run build --configuration | ||
| else | ||
| npm rum configuration production | ||
| fi | ||
| echo "Check if previous version archive exist" | ||
| archive_name=app.zip; | ||
| cd ../dist; | ||
| if [ -f "./$archive_name" ] | ||
| then | ||
| echo "Delete previous version" | ||
| rm "./$archive_name"; | ||
| fi | ||
| echo "Create new archive" | ||
| zip -rm $archive_name app; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| { | ||
| "pipeline": { | ||
| "name": "angular-shop", | ||
| "roleArn": "roleArn", | ||
| "artifactStore": { | ||
| "type": "S3", | ||
| "location": "codepipeline-artifactStore-location" | ||
| }, | ||
| "stages": [ | ||
| { | ||
| "name": "Source", | ||
| "actions": [ | ||
| { | ||
| "name": "Source", | ||
| "actionTypeId": { | ||
| "category": "Source", | ||
| "owner": "ThirdParty", | ||
| "provider": "GitHub", | ||
| "version": "1" | ||
| }, | ||
| "runOrder": 1, | ||
| "configuration": { | ||
| "Branch": "master", | ||
| "OAuthToken": "****", | ||
| "Owner": "mihan-pro", | ||
| "PollForSourceChanges": "true", | ||
| "Repo": "shop-angular-cloudfront" | ||
| }, | ||
| "outputArtifacts": [ | ||
| { | ||
| "name": "SourceArtifact" | ||
| } | ||
| ], | ||
| "inputArtifacts": [], | ||
| "region": "us-east-1", | ||
| "namespace": "SourceVariables" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "QualityGate", | ||
| "actions": [ | ||
| { | ||
| "name": "LintingAntUnitTesting", | ||
| "actionTypeId": { | ||
| "category": "Build", | ||
| "owner": "AWS", | ||
| "provider": "CodeBuild", | ||
| "version": "1" | ||
| }, | ||
| "runOrder": 1, | ||
| "configuration": { | ||
| "EnvironmentVariables": "[{\"name\":\"BUILD_CONFIGURATION\",\"value\":\"{{BUILD_CONFIGURATION value}}\",\"type\":\"PLAINTEXT\"}]", | ||
| "ProjectName": "client-app-quality" | ||
| }, | ||
| "outputArtifacts": [], | ||
| "inputArtifacts": [ | ||
| { | ||
| "name": "SourceArtifact" | ||
| } | ||
| ], | ||
| "region": "us-east-1" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "Approve", | ||
| "actions": [ | ||
| { | ||
| "name": "ManualApproval", | ||
| "actionTypeId": { | ||
| "category": "Approval", | ||
| "owner": "AWS", | ||
| "provider": "Manual", | ||
| "version": "1" | ||
| }, | ||
| "runOrder": 1, | ||
| "configuration": { | ||
| "CustomData": "Approve me" | ||
| }, | ||
| "outputArtifacts": [], | ||
| "inputArtifacts": [], | ||
| "region": "us-east-1" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "Build", | ||
| "actions": [ | ||
| { | ||
| "name": "BuildAndDeploy", | ||
| "actionTypeId": { | ||
| "category": "Build", | ||
| "owner": "AWS", | ||
| "provider": "CodeBuild", | ||
| "version": "1" | ||
| }, | ||
| "runOrder": 1, | ||
| "configuration": { | ||
| "EnvironmentVariables": "[{\"name\":\"BUILD_CONFIGURATION\",\"value\":\"{{BUILD_CONFIGURATION value}}\",\"type\":\"PLAINTEXT\"}]", | ||
| "ProjectName": "client-app-build" | ||
| }, | ||
| "outputArtifacts": [ | ||
| { | ||
| "name": "BuildArtifact" | ||
| } | ||
| ], | ||
| "inputArtifacts": [ | ||
| { | ||
| "name": "SourceArtifact" | ||
| } | ||
| ], | ||
| "region": "us-east-1", | ||
| "namespace": "BuildVariables" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "version": "2" | ||
| } | ||
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,127 @@ | ||
| { | ||
| "pipeline": { | ||
| "name": "angular-shop", | ||
| "roleArn": "roleArn", | ||
| "artifactStore": { | ||
| "type": "S3", | ||
| "location": "codepipeline-artifactStore-location" | ||
| }, | ||
| "stages": [ | ||
| { | ||
| "name": "Source", | ||
| "actions": [ | ||
| { | ||
| "name": "Source", | ||
| "actionTypeId": { | ||
| "category": "Source", | ||
| "owner": "ThirdParty", | ||
| "provider": "GitHub", | ||
| "version": "1" | ||
| }, | ||
| "runOrder": 1, | ||
| "configuration": { | ||
| "Branch": "{{Branch name}}", | ||
| "OAuthToken": "****", | ||
| "Owner": "{{GitHub Owner}}", | ||
| "PollForSourceChanges": "{{PollForSourceChanges}}", | ||
| "Repo": "shop-angular-cloudfront" | ||
| }, | ||
| "outputArtifacts": [ | ||
| { | ||
| "name": "SourceArtifact" | ||
| } | ||
| ], | ||
| "inputArtifacts": [], | ||
| "region": "us-east-1", | ||
| "namespace": "SourceVariables" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "QualityGate", | ||
| "actions": [ | ||
| { | ||
| "name": "LintingAntUnitTesting", | ||
| "actionTypeId": { | ||
| "category": "Build", | ||
| "owner": "AWS", | ||
| "provider": "CodeBuild", | ||
| "version": "1" | ||
| }, | ||
| "runOrder": 1, | ||
| "configuration": { | ||
| "EnvironmentVariables": "[{\"name\":\"BUILD_CONFIGURATION\",\"value\":\"{{BUILD_CONFIGURATION value}}\",\"type\":\"PLAINTEXT\"}]", | ||
| "ProjectName": "client-app-quality" | ||
| }, | ||
| "outputArtifacts": [], | ||
| "inputArtifacts": [ | ||
| { | ||
| "name": "SourceArtifact" | ||
| } | ||
| ], | ||
| "region": "us-east-1" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "Approve", | ||
| "actions": [ | ||
| { | ||
| "name": "ManualApproval", | ||
| "actionTypeId": { | ||
| "category": "Approval", | ||
| "owner": "AWS", | ||
| "provider": "Manual", | ||
| "version": "1" | ||
| }, | ||
| "runOrder": 1, | ||
| "configuration": { | ||
| "CustomData": "Approve me" | ||
| }, | ||
| "outputArtifacts": [], | ||
| "inputArtifacts": [], | ||
| "region": "us-east-1" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "Build", | ||
| "actions": [ | ||
| { | ||
| "name": "BuildAndDeploy", | ||
| "actionTypeId": { | ||
| "category": "Build", | ||
| "owner": "AWS", | ||
| "provider": "CodeBuild", | ||
| "version": "1" | ||
| }, | ||
| "runOrder": 1, | ||
| "configuration": { | ||
| "EnvironmentVariables": "[{\"name\":\"BUILD_CONFIGURATION\",\"value\":\"{{BUILD_CONFIGURATION value}}\",\"type\":\"PLAINTEXT\"}]", | ||
| "ProjectName": "client-app-build" | ||
| }, | ||
| "outputArtifacts": [ | ||
| { | ||
| "name": "BuildArtifact" | ||
| } | ||
| ], | ||
| "inputArtifacts": [ | ||
| { | ||
| "name": "SourceArtifact" | ||
| } | ||
| ], | ||
| "region": "us-east-1", | ||
| "namespace": "BuildVariables" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "version": 1 | ||
| }, | ||
| "metadata": { | ||
| "pipelineArn": "pipelineArn", | ||
| "created": 1586327944.749, | ||
| "updated": 1587023189.403 | ||
| } | ||
| } | ||
|  | 
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.