-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Run on Examples | ||
|
||
on: push | ||
|
||
jobs: | ||
examples: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
- run: pnpm install | ||
- name: Run on Success | ||
id: example-success | ||
if: ${{ always() }} | ||
run: pnpm --filter ./examples/success i18n-lint | ||
- name: Run on Failure (expect to fail) | ||
id: example-failure | ||
if: ${{ always() }} | ||
run: pnpm --filter ./examples/failure i18n-lint | ||
- name: Run on Yaml (expect to fail) | ||
id: example-yaml | ||
if: ${{ always() }} | ||
run: pnpm --filter ./examples/yaml i18n-lint | ||
- name: Check Results | ||
if: ${{ steps.example-success.conclusion != 'success' || steps.example-failure.conclusion != 'failure' || steps.example-yaml.conclusion != 'failure' }} | ||
run: exit 1 |