mirror of
https://github.com/SomboChea/ui
synced 2024-11-05 22:24:27 +07:00
29 lines
689 B
YAML
29 lines
689 B
YAML
name: CI
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build_test_lint:
|
|
name: Node ${{ matrix.node_version }} and ${{ matrix.os }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node_version: ['8.16', 10, 12] # Node 8 version fix due to https://github.com/actions/setup-node/issues/27
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Use Node.js ${{ matrix.node_version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
version: ${{ matrix.node_version }}
|
|
- name: Install
|
|
run: yarn install --frozen-lockfile
|
|
- name: Build
|
|
run: yarn build
|
|
- name: Lint
|
|
run: yarn lint
|