Bump msw from 2.2.13 to 2.7.0 #1192
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
name: Linter | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
pull_request: | |
jobs: | |
StandardJS: | |
if: ${{ github.triggering_actor != 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install standard | |
working-directory: ./src | |
run: npm install -g standard | |
- name: Standard Fix | |
working-directory: ./src | |
continue-on-error: true | |
run: standard --fix --global it --global expect --global describe --global beforeAll --global afterEach --global beforeEach --global afterAll --global test --global jest --global localStorage --global cy --global sessionStorage --global FileReader --global alert --global File --global before | |
- name: Get Non fixable auto | |
working-directory: ./src | |
continue-on-error: true | |
run: standard --global it --global expect --global describe --global beforeAll --global afterEach --global beforeEach --global afterAll --global test --global jest --global localStorage --global cy --global sessionStorage --global FileReader --global alert --global File --global before > linter-nonfixable | |
- name: Delete empty file linter-nonfixable | |
working-directory: ./src | |
run: | | |
find linter-nonfixable -size 0 -delete | |
- name: Check file existence | |
id: check_files | |
uses: andstor/file-existence-action@v2 | |
with: | |
files: "./src/linter-nonfixable" | |
- name: Add comment start file | |
if: steps.check_files.outputs.files_exists == 'true' | |
working-directory: ./src | |
run: | | |
sed -i '1s/^/Non fixable linter problems:\n\n/' linter-nonfixable | |
- name: Comment non fixable | |
if: | | |
steps.check_files.outputs.files_exists == 'true' && | |
github.event_name == 'pull_request' | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
filePath: ./src/linter-nonfixable | |
comment_tag: linternonfixable | |
- name: Comment empty | |
if: | | |
steps.check_files.outputs.files_exists == 'false' && | |
github.event_name == 'pull_request' | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: "Non fixable linter problems:" | |
comment_tag: linternonfixable | |
create_if_not_exists: false | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
if: | | |
github.event_name == 'pull_request' | |
with: | |
commit_message: "[LINT] Applied linter fix" | |
- name: Set error if file | |
if: steps.check_files.outputs.files_exists == 'true' | |
run: exit 1 |