E2E Prettier #11253
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
on: | |
schedule: | |
- cron: '0 */4 * * *' | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- .github/actions/prepare/action.yml | |
- .github/workflows/e2e-prettier-workflow.yml | |
- scripts/e2e-setup-ci.sh | |
name: 'E2E Prettier' | |
jobs: | |
chore: | |
name: 'Validating Prettier' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/prepare | |
- name: 'Running the integration test' | |
run: | | |
source scripts/e2e-setup-ci.sh | |
yarn init -p | |
yarn add prettier | |
echo 'semi: true' > .prettierrc | |
echo '42;' | tee ok.js | |
yarn prettier --check ok.js | |
echo '42' | tee ko.js | |
! yarn prettier --check ko.js |