tide/.github/workflows/CI.yml
2021-03-08 08:39:19 -08:00

73 lines
1.3 KiB
YAML

---
name: CI
on:
push:
branches-ignore:
- main
tags-ignore:
- v*.*.*
pull_request:
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: fish-actions/install-fish@v1
- uses: fish-actions/fisher@v1
with:
plugins: ilancosman/clownfish $GITHUB_WORKSPACE
- uses: fish-actions/littlecheck@v1
with:
files: $GITHUB_WORKSPACE/tests/**
syntax-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: fish-actions/install-fish@v1
- uses: fish-actions/syntax-check@v1
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: fish-actions/install-fish@v1
- uses: fish-actions/format-check@v1
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actionsx/prettier@v2
with:
args: --check .
mega-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nvuillam/mega-linter/flavors/documentation@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISABLE_LINTERS: SPELL_CSPELL