Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Merge pull request #2 from pherval/dependabot/npm_and_yarn/tmpl-1.0.5 #265

Merge pull request #2 from pherval/dependabot/npm_and_yarn/tmpl-1.0.5

Merge pull request #2 from pherval/dependabot/npm_and_yarn/tmpl-1.0.5 #265

Workflow file for this run

name: Build and Test
on: [push]
jobs:
lint:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
node: ["16.x", "lts/fermium"]
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v2
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
cache: "npm"
- run: npm ci
- run: npm run lint
typecheck:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
node: ["16.x", "lts/fermium"]
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v2
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
cache: "npm"
- run: npm ci
- run: npm run typecheck
format:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
node: ["16.x", "lts/fermium"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- uses: actions/checkout@v2
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
cache: "npm"
- run: npm ci
- run: npm run format:check
build:
needs: [lint, format, typecheck]
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
node: ["16.x", "lts/fermium"]
steps:
- uses: actions/checkout@v2
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
cache: "npm"
- run: npm ci
- run: npm run build
test:
needs: [lint, format, typecheck]
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node: ["16.x", "lts/fermium"]
steps:
- uses: actions/checkout@v2
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
cache: "npm"
- run: npm ci
- run: npm test