svelte-i18n/.github/workflows/ci.yml

31 lines
661 B
YAML
Raw Normal View History

2019-11-20 01:10:34 +01:00
name: CI
on: [push, pull_request]
jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- run: 'npm i && npm run lint'
Tests:
needs: [Lint]
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [11.15.0, 12]
2019-11-20 01:10:34 +01:00
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test:ci
env:
CI: true