mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: Test GitHub Action
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
shallow:
|
|
name: Spell Check with Typos
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout Actions Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Prepare file with mistakes.
|
|
run: echo "Finallizes" > file.txt
|
|
- name: Test force pass with mistakes
|
|
continue-on-error: true
|
|
uses: ./
|
|
with:
|
|
files: ./file.txt
|
|
|
|
- name: Prepare file with no mistakes.
|
|
run: echo "Finalizes" > file.txt
|
|
- name: Test pass with no mistakes
|
|
uses: ./
|
|
with:
|
|
files: ./file.txt
|
|
|
|
deep:
|
|
name: Spell Check with Type w/History
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout Actions Repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Prepare file with mistakes.
|
|
run: echo "Finallizes" > file.txt
|
|
- name: Test force pass with mistakes
|
|
continue-on-error: true
|
|
uses: ./
|
|
with:
|
|
files: ./file.txt
|
|
|
|
- name: Prepare file with no mistakes.
|
|
run: echo "Finalizes" > file.txt
|
|
- name: Test pass with no mistakes
|
|
uses: ./
|
|
with:
|
|
files: ./file.txt
|