chore(deps): update patch updates #3821
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: "CI" | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
node: [ 18, 20 ] | |
name: Test(Node ${{ matrix.node }} on ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
- name: Install | |
run: npm ci | |
- name: Test | |
run: npm test | |
- name: Test Examples | |
run: npm run test:examples | |
benchmark: | |
name: Benchmark | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
if: github.event_name == 'push' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install Hyperfine | |
run: | | |
wget https://github.com/sharkdp/hyperfine/releases/download/v1.15.0/hyperfine_1.15.0_amd64.deb | |
sudo dpkg -i hyperfine_1.15.0_amd64.deb | |
- name: Install | |
run: npm ci | |
- name: Build textlint | |
run: npm run build | |
- name: Benchmark | |
run: npm run bench | |
working-directory: ./test/benchmark | |
- name: Get Previous Benchmark Results | |
uses: actions/cache@v3 | |
with: | |
path: ./cache | |
key: ${{ runner.os }}-benchmark | |
- name: Save Benchmark Results | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
tool: 'customSmallerIsBetter' | |
output-file-path: ./test/benchmark/output.json | |
benchmark-data-dir-path: 'benchmarks' | |
fail-on-alert: true | |
comment-on-alert: true | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
- name: Output Step Summary | |
run: | | |
cat ./test/benchmark/result.md > $GITHUB_STEP_SUMMARY | |
echo "- <https://textlint.github.io/textlint/benchmarks/>" >> $GITHUB_STEP_SUMMARY | |
e2e: | |
name: E2E | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install | |
run: npm ci | |
- name: Build textlint | |
run: npm run build | |
- name: Integration Tests | |
run: npm run test:integration | |
documentation: | |
strategy: | |
matrix: | |
node: [ 18 ] | |
name: Documentation(Node ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
- name: Install | |
run: npm ci | |
- run: npm run test:docs | |
- run: npm run website |