From c5a36f2f6666bb610cd51282ef36e83bf75f953f Mon Sep 17 00:00:00 2001 From: Bernardo Pereira Date: Fri, 20 Sep 2024 22:45:49 -0300 Subject: [PATCH] ci: atualizado workflows --- .github/workflows/back.yml | 16 +++++----------- .github/workflows/front.yml | 17 ++++++----------- 2 files changed, 11 insertions(+), 22 deletions(-) diff --git a/.github/workflows/back.yml b/.github/workflows/back.yml index 74e0ed9..3a3ac50 100644 --- a/.github/workflows/back.yml +++ b/.github/workflows/back.yml @@ -1,9 +1,11 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Back-end | Build + defaults: run: working-directory: ./backend -name: Back-end | Build on: push: @@ -13,22 +15,14 @@ on: jobs: build: - name: Test on node ${{ matrix.node-version }} runs-on: ubuntu-latest - defaults: - run: - working-directory: ./backend - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 20.9.0 uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20.9.0 cache: "npm" - name: Install dependencies diff --git a/.github/workflows/front.yml b/.github/workflows/front.yml index b88eced..0523be7 100644 --- a/.github/workflows/front.yml +++ b/.github/workflows/front.yml @@ -3,6 +3,10 @@ name: Front-end | Build & Tests +defaults: + run: + working-directory: ./frontend + on: push: branches: ["main"] @@ -11,23 +15,14 @@ on: jobs: build: - name: Test on node ${{ matrix.node-version }} runs-on: ubuntu-latest - defaults: - run: - working-directory: ./frontend - - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js 20.9.0 uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: 20.9.0 cache: "npm" - name: Install dependencies