Skip to content

Commit

Permalink
prettier test
Browse files Browse the repository at this point in the history
  • Loading branch information
Whisker17 committed Jul 27, 2023
1 parent 7163164 commit 8d4b8dd
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/prettier_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,34 @@ jobs:
- name: Check Out Repository
uses: actions/checkout@v2

- name: Run Prettier Auto-Format
run: docker run --rm -v $PWD:/app -w /app prettier/prettier:latest --write .
- name: Install Prettier
run: npm install prettier --global

- name: Get Modified Files
id: modified-files
run: |
modified_files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }})
echo "$modified_files" > modified_files.txt
- name: Read Modified Files
id: read-env
run: echo "MODIFIED_FILES=$(cat modified_files.txt)" >> $GITHUB_ENV

- name: Format Modified Files
if: ${{ env.MODIFIED_FILES != '' }}
run: |
prettier --write ${{ env.MODIFIED_FILES }}
- name: Commit Changes
if: ${{ env.MODIFIED_FILES != '' }}
run: |
git config --global user.name "Your GitHub Username"
git config --global user.email "[email protected]"
git add .
git commit -m "Auto-format code with Prettier [skip ci]"
- name: Push Changes
if: ${{ env.MODIFIED_FILES != '' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions evaluations/AdMeta_1_0xCaso.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Evaluation



- **Status:** Accepted
- **Application Document:** https://github.com/w3f/Grants-Program/blob/master/applications/AdMeta.md
- **Milestone:** 1
- **Kusama Identity:** [HC8pZ53SejB9YALHn2qXea6XMFFNgxpdXhVvtF7uU5dTSqu](https://kusama.subscan.io/account/HC8pZ53SejB9YALHn2qXea6XMFFNgxpdXhVvtF7uU5dTSqu)
- **Previously successfully merged evaluation:** All by 0xCaso



| Number | Deliverable | Accepted | Link | Evaluation Notes |
| ------ | ----------- | -------- | ---- |----------------- |
| 0a. | License | <ul><li>[x] </li></ul> | [LICENSE](https://github.com/AdMetaNetwork/admeta/blob/main/LICENSE) | |
Expand All @@ -22,6 +25,7 @@

## General Notes v2 - Jan 11, 2023


The Testing Guide has been updated, it's findable in the WebApp [README](https://github.com/AdMetaNetwork/admeta-webapp/blob/bb74d090d815bb9af5cfb9314968672bffa54ffa/README.md).

## General Notes v1 - Jan 9, 2023
Expand All @@ -31,6 +35,8 @@ Overall the delivery is really good. The main functionalities work and the UI is
- The webapp lets you try all the most important functionalities;
- For now, users can claim rewards without doing any tasks, but the team [stated](https://github.com/w3f/Grant-Milestone-Delivery/pull/667#issuecomment-1375771236) that they plan to make this impossible (users should complete some tasks while watching ads to claim rewards);



As the main problem was the local testing, I ask the team to slightly improve the WebApp Guide:

### 0c. Testing Guide
Expand Down

0 comments on commit 8d4b8dd

Please sign in to comment.