|
|
@ -12,7 +12,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
strategy: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
matrix: |
|
|
|
node-version: [16.x, 18.x] |
|
|
|
node-version: [18.x] |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- uses: actions/checkout@v3 |
|
|
@ -20,16 +20,10 @@ jobs: |
|
|
|
uses: actions/setup-node@v3 |
|
|
|
uses: actions/setup-node@v3 |
|
|
|
with: |
|
|
|
with: |
|
|
|
node-version: ${{ matrix.node-version }} |
|
|
|
node-version: ${{ matrix.node-version }} |
|
|
|
cache: "yarn" |
|
|
|
cache: "npm" |
|
|
|
- name: Install dependencies |
|
|
|
- name: Install dependencies |
|
|
|
uses: borales/actions-yarn@v4 |
|
|
|
run: npm install |
|
|
|
with: |
|
|
|
|
|
|
|
cmd: install |
|
|
|
|
|
|
|
- name: Build app |
|
|
|
- name: Build app |
|
|
|
uses: borales/actions-yarn@v4 |
|
|
|
run: npm run build |
|
|
|
with: |
|
|
|
|
|
|
|
cmd: build |
|
|
|
|
|
|
|
- name: Test app |
|
|
|
- name: Test app |
|
|
|
uses: borales/actions-yarn@v4 |
|
|
|
run: npm test |
|
|
|
with: |
|
|
|
|
|
|
|
cmd: test |
|
|
|
|
|
|
|