docs: update docs to fix frustrating issues with Vercel (not fully fi… #503
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
# Ensure that git always checkouts out with LF (to avoid issues in Windows, https://github.com/prettier/prettier/issues/7825#issuecomment-602171740) | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- uses: actions/checkout@v1 | |
with: | |
submodules: 'recursive' | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- name: Use Node.js latest LTS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* # Test on the current LTS version. | |
- name: install | |
run: | | |
npm run fresh | |
- name: check formatting | |
run: | | |
npm run prettier:check:all | |
- name: build | |
run: | | |
npm run clean:all | |
npm run build:all | |
- name: test | |
run: | | |
npm run test:all | |
- name: check repo is clean | |
# skip this check in windows for now, as the build outputs may get slightly modified in Windows, which we want to fix. | |
if: runner.os != 'Windows' | |
run: | | |
git status && git submodule foreach git --no-pager diff && git add . && git diff --quiet && git diff --cached --quiet | |
env: | |
CI: true |