mirror of https://github.com/actions/toolkit
53 lines
853 B
YAML
53 lines
853 B
YAML
name: toolkit-unit-tests
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build
|
|
|
|
strategy:
|
|
matrix:
|
|
runs-on: [ubuntu-latest, macos-latest, windows-latest]
|
|
fail-fast: false
|
|
|
|
runs-on: ${{ matrix.runs-on }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set Node.js 14.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 14.x
|
|
- run: npm -v
|
|
|
|
- name: npm install
|
|
run: npm install
|
|
|
|
- name: Bootstrap
|
|
run: npm run bootstrap
|
|
|
|
- name: Compile
|
|
run: npm run build
|
|
|
|
- name: npm test
|
|
run: npm test
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
- name: Format
|
|
run: npm run format-check
|