mirror of
https://github.com/gosticks/svgr.git
synced 2026-07-01 10:30:03 +00:00
The whole codebase has been rewritten to TypeScript. BREAKING CHANGE: template signature has changed
46 lines
993 B
YAML
46 lines
993 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x, 14.x, 16.x]
|
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'npm'
|
|
|
|
- name: Use latest npm
|
|
run: npm i -g npm@latest --registry=https://registry.npmjs.org
|
|
if: ${{ matrix.node-version == '12.x' || matrix.node-version == '14.x' }}
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
- name: Test
|
|
run: npm run test -- --ci --coverage
|
|
|
|
- name: Codecov
|
|
run: npx codecov
|