Skip to content

Commit

Permalink
ci: atualizado workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoSemiOficial committed Sep 21, 2024
1 parent f781d4b commit c5a36f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/back.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

name: Front-end | Build & Tests

defaults:
run:
working-directory: ./frontend

on:
push:
branches: ["main"]
Expand All @@ -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
Expand Down

0 comments on commit c5a36f2

Please sign in to comment.