Browse Source

Merge pull request #16 from DoneDeal0/use-npm-for-ci

use npm for ci
pull/15/head
DoneDeal0 1 year ago committed by GitHub
parent
commit
1c97f0c151
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 16
      .github/workflows/superdiff.yml

16
.github/workflows/superdiff.yml

@ -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

Loading…
Cancel
Save