svelte-i18n/.github/workflows/ci.yml
2021-03-18 22:10:40 -03:00

34 lines
768 B
YAML

name: CI
on: [push, pull_request]
jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Install Dependencies
uses: bahmutov/npm-install@v1
- run: 'npm run lint'
Tests:
needs: [Lint]
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [13.2.0]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- run: git config --global core.autocrlf false
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
uses: bahmutov/npm-install@v1
- run: npm run test:ci
env:
CI: true