Skip to content

Commit

Permalink
Merge pull request #4 from ProjectOpenSea/ryan/disable-lint-workflow
Browse files Browse the repository at this point in the history
disable lint workflow
  • Loading branch information
0age authored Feb 3, 2024
2 parents fc90605 + c13b5e9 commit 1cc6b7c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Lint
run: |
echo "Running forge fmt --check"
if ! forge fmt --check; then
if ! forge fmt --check; then
echo "The linting check failed. You can fix it locally with `forge fmt` and then push, or you can have a GitHub action take care of it for you by commenting '!fix' on the PR."
exit 1
fi
fi
34 changes: 17 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ jobs:
- name: Run tests
run: FOUNDRY_PROFILE=test forge test -vvv

- name: Lint
run: |
forge fmt
pwd
if [[ `git diff --exit-code` ]]; then
git config --local user.name 'GitHub Actions Bot'
git config --local user.email '<>'
git add .
git commit -m "Github Actions automatically updated formatting with forge fmt"
COMMIT_HASH=$(git rev-parse HEAD)
echo "# Github Actions automatically updated formatting with forge fmt\n$COMMIT_HASH" >> .git-blame-ignore-revs
git add .git-blame-ignore-revs
git commit -m "Updated .git-blame-ignore-revs with commit $COMMIT_HASH"
BRANCH_NAME=$(git symbolic-ref --short HEAD)
git push origin $BRANCH_NAME
fi
id: update
# - name: Lint
# run: |
# forge fmt
# pwd
# if [[ `git diff --exit-code` ]]; then
# git config --local user.name 'GitHub Actions Bot'
# git config --local user.email '<>'
# git add .
# git commit -m "Github Actions automatically updated formatting with forge fmt"
# COMMIT_HASH=$(git rev-parse HEAD)
# echo "# Github Actions automatically updated formatting with forge fmt\n$COMMIT_HASH" >> .git-blame-ignore-revs
# git add .git-blame-ignore-revs
# git commit -m "Updated .git-blame-ignore-revs with commit $COMMIT_HASH"
# BRANCH_NAME=$(git symbolic-ref --short HEAD)
# git push origin $BRANCH_NAME
# fi
# id: update

forge-offerers:
name: Run Contract Offerer Forge Tests (via_ir = false; fuzz_runs = 1000)
Expand Down

0 comments on commit 1cc6b7c

Please sign in to comment.