test #46
This file contains 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
name: CI/CD Pipeline | |
on: | |
pull_request: | |
branches: | |
- '**' | |
paths-ignore: | |
- "README.md" | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
Continuous_Integration: | |
name: Check for Linting and Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install dependancies | |
run: npm install | |
- name: Lint code | |
run: npm run lint:chec | |
- name: Check Formatting | |
run: npm run format:check | |
- name: Run unit tests | |
run: echo "Running unit tests" | |
# build-and-push-ecr-image: | |
# name: Build and Push to ECR | |
# needs: integration | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout Code | |
# uses: actions/checkout@v2 | |
# - name: Configure AWS credentials | |
# uses: aws-actions/configure-aws-credentials@v1 | |
# with: | |
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
# aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | |
# - name: Login to Amazon ECR | |
# id: login-ecr | |
# uses: aws-actions/amazon-ecr-login@v1 | |
# - name: Build and tag Docker images | |
# run: | | |
# # Build Docker containers and tag them. | |
# docker compose -f D:\Projects\Google docs clone\docker-compose.yaml build | |
# - name: Push Docker images to Amazon ECR | |
# run: | | |
# # Push the Docker images to Amazon ECR. | |
# docker compose -f D:\Projects\Google docs clone\docker-compose.yaml push |