mirror of
https://github.com/FormidableLabs/webpack-dashboard.git
synced 2026-01-25 14:27:01 +00:00
42 lines
696 B
YAML
42 lines
696 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
node-version: [18.x]
|
|
|
|
steps:
|
|
# Setup
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache: "yarn"
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
# Installation
|
|
- run: yarn --version
|
|
- run: yarn install --frozen-lockfile
|
|
env:
|
|
CI: true
|
|
|
|
# CI
|
|
- run: yarn check-ci
|
|
# Test
|
|
- run: yarn test
|
|
# Code coverage
|
|
- run: yarn codecov
|