From 29846a63c560cdfc65f6bc39b5867aa4ae43acac Mon Sep 17 00:00:00 2001 From: Daniela Lima <96999239+dani7fl7@users.noreply.github.com> Date: Wed, 6 Mar 2024 22:03:50 -0300 Subject: [PATCH 1/8] Create ci.yml --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..15a61d6b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From 991007f3881be0f59980e6006c1097fa8782e183 Mon Sep 17 00:00:00 2001 From: Daniela Lima <96999239+dani7fl7@users.noreply.github.com> Date: Thu, 7 Mar 2024 07:47:01 -0300 Subject: [PATCH 2/8] chore: adiciona correcoes no arquivo pipeline #157 --- .github/workflows/ci.yml | 18 ---------------- .github/workflows/pipeline.yml | 38 ++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/pipeline.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 15a61d6b..00000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [push] -jobs: - Explore-GitHub-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 00000000..2089f55a --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,38 @@ +name: MipsCode Pipeline +on: [push] +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Copy files from repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: Install dependencies + run: | + cd backend + npm install + + - name: Build backend + run: | + cd backend + npm run build + + - name: Install dependencies + run: | + cd frontend + npm install + + - name: Build frontend + run: | + cd frontend + npm run build + + + + + From 234e3ed9f6ba9a294013e482ea118a35e337d2c8 Mon Sep 17 00:00:00 2001 From: Daniela Lima <96999239+dani7fl7@users.noreply.github.com> Date: Thu, 7 Mar 2024 07:48:22 -0300 Subject: [PATCH 3/8] refactor: corrige semantica #157 --- .github/workflows/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 2089f55a..c5dc2a6a 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -10,7 +10,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: '20' + node-version: '20' - name: Install dependencies run: | From 089c56657ec952e183904893bcde2af156cc250e Mon Sep 17 00:00:00 2001 From: Daniela Lima <96999239+dani7fl7@users.noreply.github.com> Date: Thu, 7 Mar 2024 07:54:08 -0300 Subject: [PATCH 4/8] =?UTF-8?q?fix:=20corrige=20c=C3=B3digo=20para=20rodar?= =?UTF-8?q?=20o=20build=20=20#157?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/GerenciarProjeto/pages/CriarProjeto/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/features/GerenciarProjeto/pages/CriarProjeto/index.tsx b/frontend/src/features/GerenciarProjeto/pages/CriarProjeto/index.tsx index 89406c34..b3fdac62 100644 --- a/frontend/src/features/GerenciarProjeto/pages/CriarProjeto/index.tsx +++ b/frontend/src/features/GerenciarProjeto/pages/CriarProjeto/index.tsx @@ -76,9 +76,9 @@ const CriarProjeto = () => { } } - const handleCloseFeedback = () => { - setShowFeedback(false); - }; +// const handleCloseFeedback = () => { +// setShowFeedback(false); +// }; return ( <> From d83253ac2242e534cc4260859df712ff6c033310 Mon Sep 17 00:00:00 2001 From: Daniela Lima <96999239+dani7fl7@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:11:48 -0300 Subject: [PATCH 5/8] refactor: corrige escrita #157 --- .github/workflows/pipeline.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index c5dc2a6a..ef3f0670 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -1,33 +1,40 @@ name: MipsCode Pipeline -on: [push] + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + jobs: - Build: + build: + runs-on: ubuntu-latest steps: - - name: Copy files from repository + - name: copy files from repository uses: actions/checkout@v3 - - name: Set up Node.js + - name: set up Node.js uses: actions/setup-node@v2 with: node-version: '20' - - name: Install dependencies + - name: install dependencies run: | cd backend npm install - - name: Build backend + - name: build backend run: | cd backend npm run build - - name: Install dependencies + - name: install dependencies run: | cd frontend npm install - - name: Build frontend + - name: build frontend run: | cd frontend npm run build From efec60e660fcdeb0d20384fa1e89e73281032857 Mon Sep 17 00:00:00 2001 From: Daniela Lima <96999239+dani7fl7@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:13:20 -0300 Subject: [PATCH 6/8] chore: cria o arquivo de pipeline #157 --- .github/worksflor/pipeline.yml | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/worksflor/pipeline.yml diff --git a/.github/worksflor/pipeline.yml b/.github/worksflor/pipeline.yml new file mode 100644 index 00000000..ef3f0670 --- /dev/null +++ b/.github/worksflor/pipeline.yml @@ -0,0 +1,45 @@ +name: MipsCode Pipeline + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + steps: + - name: copy files from repository + uses: actions/checkout@v3 + + - name: set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: install dependencies + run: | + cd backend + npm install + + - name: build backend + run: | + cd backend + npm run build + + - name: install dependencies + run: | + cd frontend + npm install + + - name: build frontend + run: | + cd frontend + npm run build + + + + + From fb0ec9de6d8230160696e3be8320cc7a35e064d9 Mon Sep 17 00:00:00 2001 From: Daniela Lima <96999239+dani7fl7@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:22:02 -0300 Subject: [PATCH 7/8] chore: adiciona arquivo de pipeline --- .github/workflows/pipeline.yml | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/pipeline.yml diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 00000000..ef3f0670 --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,45 @@ +name: MipsCode Pipeline + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + steps: + - name: copy files from repository + uses: actions/checkout@v3 + + - name: set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: install dependencies + run: | + cd backend + npm install + + - name: build backend + run: | + cd backend + npm run build + + - name: install dependencies + run: | + cd frontend + npm install + + - name: build frontend + run: | + cd frontend + npm run build + + + + + From 3dbea57af009ccd5adfa9e4f983a2df992c5427b Mon Sep 17 00:00:00 2001 From: Daniela Lima <96999239+dani7fl7@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:24:35 -0300 Subject: [PATCH 8/8] fix: corrige codigo para fazer o build --- .../features/GerenciarProjeto/pages/CriarProjeto/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/features/GerenciarProjeto/pages/CriarProjeto/index.tsx b/frontend/src/features/GerenciarProjeto/pages/CriarProjeto/index.tsx index 89406c34..b3fdac62 100644 --- a/frontend/src/features/GerenciarProjeto/pages/CriarProjeto/index.tsx +++ b/frontend/src/features/GerenciarProjeto/pages/CriarProjeto/index.tsx @@ -76,9 +76,9 @@ const CriarProjeto = () => { } } - const handleCloseFeedback = () => { - setShowFeedback(false); - }; +// const handleCloseFeedback = () => { +// setShowFeedback(false); +// }; return ( <>