kucherenko / ol0lo

0 stars 0 forks source link

Implement task #67 - add github actions #68

Closed brian-ai-assistant-dev[bot] closed 1 year ago

brian-ai-assistant-dev[bot] commented 1 year ago

As per the given task, I will implement GitHub Actions for building, testing, and deploying the web application. This will ensure that the code is automatically built, tested, and deployed whenever changes are pushed to the repository. To achieve this, I will create a workflow file '.github/workflows/main.yml' with the necessary configuration for each step. The workflow will trigger on push events to the main branch. Here is the content for the workflow file:

name: CI/CD

on: push: branches:

jobs: build: runs-on: ubuntu-latest

steps:
  - name: Checkout code
    uses: actions/checkout@v2

  - name: Install dependencies
    run: npm install

  - name: Build application
    run: npm run build

  - name: Run tests
    run: npm run test

deploy: needs: build runs-on: ubuntu-latest

steps:
  - name: Checkout code
    uses: actions/checkout@v2

  - name: Install dependencies
    run: npm install

  - name: Deploy to production
    run: npm run deploy
netlify[bot] commented 1 year ago

Deploy Preview for willowy-kleicha-1542e1 ready!

Name Link
Latest commit 1ec74056374accd9193758ed068c4d79f34ed246
Latest deploy log https://app.netlify.com/sites/willowy-kleicha-1542e1/deploys/64b573041ae2ae0007b0beeb
Deploy Preview https://deploy-preview-68--willowy-kleicha-1542e1.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.