Skip to content

test

test #46

Workflow file for this run

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