Files
hoppscotch/.github/workflows/tests.yml
Workflow config file is invalid. Please check your config file: yaml: line 11: did not find expected key
liyasthomas be6ceaab04 perf: ci
2021-09-10 12:46:50 +05:30

34 lines
809 B
YAML

name: Node.js CI
on:
push:
branches: [ main, refactor/monorepo ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache .pnpm-store
uses: actions/cache@v1
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install pnpm
run: curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm@6
- name: Run tests
- run: cd packages/hoppscotch-app && pnpm ci
- run: pnpm test