Skip to content

Commit

Permalink
chore(ci): fix workflow 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceh91 committed Oct 21, 2023
1 parent cdb5537 commit 5e96d81
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ concurrency:
cancel-in-progress: true

jobs:
strategy:
matrix:
node: [16.x, 18.x, 21.x]
install-cache:
name: "Generate Cache"
runs-on: ubuntu-latest
Expand All @@ -38,8 +35,6 @@ jobs:
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache yarn dependencies
uses: actions/cache@v3
id: cache-dependencies
Expand All @@ -56,6 +51,9 @@ jobs:
unit-test:
name: "Unit Testing"
runs-on: ubuntu-latest
strategy:
matrix:
node: [16.x, 18.x, 21.x]
needs: install-cache
steps:
- name: Checkout Commit
Expand All @@ -79,6 +77,9 @@ jobs:
build:
name: "Production Build"
runs-on: ubuntu-latest
strategy:
matrix:
node: [16.x, 18.x, 21.x]
needs: unit-test
steps:
- name: Checkout Commit
Expand Down

0 comments on commit 5e96d81

Please sign in to comment.