tide/.github/workflows/CI.yml
2021-10-31 11:16:17 -07:00

67 lines
1.1 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
- run: make test -C "$GITHUB_WORKSPACE"
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