From 1f6bba831596b6c72eaf98c30d094a9e5d6f9697 Mon Sep 17 00:00:00 2001 From: tomolld Date: Tue, 23 Jul 2024 17:01:40 +0900 Subject: [PATCH 1/6] Test commit --- .github/workflows/biome.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/biome.yaml diff --git a/.github/workflows/biome.yaml b/.github/workflows/biome.yaml new file mode 100644 index 0000000..251486f --- /dev/null +++ b/.github/workflows/biome.yaml @@ -0,0 +1,26 @@ +name: Biome Check and Fix + +on: + pull_request: + paths: + - 'web/**' + +jobs: + biome: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '20' + - name: Install dependencies + run: cd web && bun i + - name: Run Biome check and fix + run: | + cd web + bunx @biomejs/biome check --apply . + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "style: apply Biome fixes" + file_pattern: 'web/**/*' \ No newline at end of file From 4332dfa70431a48593a0f8c47aabd4661730c0a3 Mon Sep 17 00:00:00 2001 From: tomolld Date: Tue, 23 Jul 2024 17:05:10 +0900 Subject: [PATCH 2/6] chore: Remove unnecessary path restriction in biome.yaml workflow --- .github/workflows/biome.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/biome.yaml b/.github/workflows/biome.yaml index 251486f..ed5c3da 100644 --- a/.github/workflows/biome.yaml +++ b/.github/workflows/biome.yaml @@ -2,8 +2,6 @@ name: Biome Check and Fix on: pull_request: - paths: - - 'web/**' jobs: biome: From a31887111d88921f79a762e408f4626a013bead5 Mon Sep 17 00:00:00 2001 From: tomolld Date: Tue, 23 Jul 2024 17:06:20 +0900 Subject: [PATCH 3/6] f --- .github/workflows/biome.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/biome.yaml b/.github/workflows/biome.yaml index ed5c3da..bb1890a 100644 --- a/.github/workflows/biome.yaml +++ b/.github/workflows/biome.yaml @@ -11,6 +11,8 @@ jobs: - uses: actions/setup-node@v3 with: node-version: '20' + - name: Install Bun + run: npm install -g bun - name: Install dependencies run: cd web && bun i - name: Run Biome check and fix From b025c9065f2ff23c06e320005176c9f1ac1cece9 Mon Sep 17 00:00:00 2001 From: tomolld Date: Tue, 23 Jul 2024 17:11:47 +0900 Subject: [PATCH 4/6] style: write Biome fixes --- .github/workflows/biome.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/biome.yaml b/.github/workflows/biome.yaml index bb1890a..5040e25 100644 --- a/.github/workflows/biome.yaml +++ b/.github/workflows/biome.yaml @@ -18,9 +18,9 @@ jobs: - name: Run Biome check and fix run: | cd web - bunx @biomejs/biome check --apply . + bunx @biomejs/biome check --write . - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: - commit_message: "style: apply Biome fixes" + commit_message: "style: write Biome fixes" file_pattern: 'web/**/*' \ No newline at end of file From 2a99db4e60ea18175a32945940e3461bc656f193 Mon Sep 17 00:00:00 2001 From: tomolld Date: Tue, 23 Jul 2024 17:12:12 +0900 Subject: [PATCH 5/6] chore: Rename job in biome.yaml workflow to biome-check-and-fix-for-web --- .github/workflows/biome.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/biome.yaml b/.github/workflows/biome.yaml index 5040e25..ec1090a 100644 --- a/.github/workflows/biome.yaml +++ b/.github/workflows/biome.yaml @@ -4,7 +4,7 @@ on: pull_request: jobs: - biome: + biome-check-and-fix-for-web: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 From 531b17b86b6251cbab3972de709c90b6c5f8c427 Mon Sep 17 00:00:00 2001 From: tomolld Date: Tue, 23 Jul 2024 17:12:28 +0900 Subject: [PATCH 6/6] chore: Update name of job in biome.yaml workflow to biome-check-and-fix-for-web --- .github/workflows/biome.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/biome.yaml b/.github/workflows/biome.yaml index ec1090a..d73ff40 100644 --- a/.github/workflows/biome.yaml +++ b/.github/workflows/biome.yaml @@ -1,4 +1,4 @@ -name: Biome Check and Fix +name: Biome Check and Fix for Web on: pull_request: