Skip to content

Commit

Permalink
add script
Browse files Browse the repository at this point in the history
  • Loading branch information
tnyo43 committed May 6, 2024
1 parent 777fe67 commit 4e16b38
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/run_on_examples.yml
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

0 comments on commit 4e16b38

Please sign in to comment.