chore(deps-dev): bump eslint-plugin-jest from 27.4.3 to 27.6.3 #269
Workflow file for this run
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: "🌞 CI" | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
- dist/** | |
- __tests__/dotnet/** | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
- dist/** | |
- __tests__/dotnet/** | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref || github.ref_name }} | |
- name: Set Node.js 18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: "yarn" | |
- run: yarn install | |
- run: | | |
yarn all | |
- name: Compare the expected and actual dist/ directories | |
id: diff | |
run: | | |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then | |
echo "Detected uncommitted changes after build. See status below:" | |
git diff | |
echo "diff=true" >> $GITHUB_ENV | |
else | |
echo "diff=false" >> $GITHUB_ENV | |
fi | |
- name: commit build | |
id: commit | |
if: ${{ env.diff == 'true' }} | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "maxisam" | |
git add dist/ | |
git commit -m "chore: build, dist updated" | |
git push origin ${{ github.event.pull_request.head.ref || github.ref_name }} | |
sha=$(git rev-parse HEAD) | |
echo "sha=$sha" >> $GITHUB_OUTPUT | |
- name: Status update | |
if: ${{ env.diff == 'true' }} | |
uses: myrotvorets/[email protected] | |
with: | |
status: "success" | |
sha: ${{ steps.commit.outputs.sha }} | |
description: "Build Dist Updated" | |
context: "Build Dist Updated" |