Skip to content

Bump cross-spawn from 7.0.3 to 7.0.6 #162

Bump cross-spawn from 7.0.3 to 7.0.6

Bump cross-spawn from 7.0.3 to 7.0.6 #162

name: Lint, test and build
on: [push]
jobs:
cache-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/package.json') }}
- name: Installing dependencies
run: npm ci
tsc-and-linting:
runs-on: ubuntu-latest
needs: cache-dependencies
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/package.json') }}
- name: Installing dependencies
run: npm ci
- run: npm run tsc
- run: npm run lint
- run: npm run prettier
unit-tests:
runs-on: ubuntu-latest
needs: cache-dependencies
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/package.json') }}
- name: Installing dependencies
run: npm ci
- run: npm run test
build:
runs-on: ubuntu-latest
needs: cache-dependencies
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/package.json') }}
- name: Installing dependencies
run: npm ci
- run: npm run build