mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
33 lines
707 B
YAML
33 lines
707 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore: ["*.md"]
|
|
push:
|
|
branches: ["main"]
|
|
paths-ignore: ["*.md"]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node: [14.x, 16.x]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Use node@${{ matrix.node }}
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
- name: Install dependencies
|
|
run: yarn --frozen-lockfile
|
|
- name: Lint code
|
|
run: yarn lint
|
|
- name: Run tests
|
|
run: yarn ci:test
|
|
- name: Check bundle size
|
|
run: yarn size
|
|
- name: Report code coverage
|
|
run: yarn ci:report
|