tests.yml (hoppscotch-2.0.0) | : | tests.yml (hoppscotch-2.1.0) | ||
---|---|---|---|---|
name: Node.js CI | name: Node.js CI | |||
on: | on: | |||
push: | push: | |||
branches: [ main ] | branches: [main] | |||
pull_request: | pull_request: | |||
branches: [ main ] | branches: [main] | |||
jobs: | jobs: | |||
build: | build: | |||
runs-on: ubuntu-latest | runs-on: ubuntu-latest | |||
strategy: | strategy: | |||
matrix: | matrix: | |||
node-version: [14.x] | node-version: [14.x] | |||
steps: | steps: | |||
- uses: actions/checkout@v2 | - uses: actions/checkout@v2 | |||
- uses: actions/setup-node@v2 | ||||
- name: Install pnpm | ||||
run: curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm@6 | ||||
- name: Use Node.js ${{ matrix.node-version }} | - name: Use Node.js ${{ matrix.node-version }} | |||
uses: actions/setup-node@v1 | uses: actions/setup-node@v2 | |||
with: | with: | |||
node-version: ${{ matrix.node-version }} | node-version: ${{ matrix.node-version }} | |||
- run: npm ci | cache: pnpm | |||
- run: npm test | - name: Run tests | |||
run: pnpm i && pnpm -r test | ||||
End of changes. 6 change blocks. | ||||
4 lines changed or deleted | 6 lines changed or added |