mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 23:52:12 -05:00
test(action): Verify with and without history
This commit is contained in:
parent
d37c3ff782
commit
bed511b57a
1 changed files with 25 additions and 1 deletions
26
.github/workflows/test-action.yml
vendored
26
.github/workflows/test-action.yml
vendored
|
@ -2,7 +2,7 @@ name: Test GitHub Action
|
|||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
shallow:
|
||||
name: Spell Check with Typos
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -23,3 +23,27 @@ jobs:
|
|||
uses: ./
|
||||
with:
|
||||
files: ./file.txt
|
||||
|
||||
deep:
|
||||
name: Spell Check with Type w/History
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Actions Repository
|
||||
uses: actions/checkout@v2
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue