12345678910111213141516171819202122232425262728 |
- name: Node.js CI
- on:
- push:
- branches: [main]
- pull_request:
- branches: [main]
- jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: ["lts/*"]
- steps:
- - 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 }}
- uses: actions/setup-node@v2
- with:
- node-version: ${{ matrix.node-version }}
- cache: pnpm
- - name: Run tests
- run: pnpm i && pnpm -r test
|