From 5779b58502282e10f3dba8a3bcd54f5ffa72c4a7 Mon Sep 17 00:00:00 2001 From: Okinea Dev Date: Wed, 9 Jul 2025 17:45:15 +0200 Subject: [PATCH] use autofix.ci --- .github/workflows/format.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 13 ++++++------- 2 files changed, 38 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..8979825 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,32 @@ +name: autofix.ci # Must be named this for autofix.ci to work + +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + +permissions: + contents: read + +jobs: + format: + runs-on: ubuntu-latest + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ› ๏ธ Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20.x + + - name: ๐Ÿ“ฆ Install Dependencies + run: npm install + + - name: ๐Ÿงน Format + run: npm run format + + - name: ๐Ÿ’พ Commit + uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5e5bae0..a6118d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,19 +24,19 @@ jobs: GH_TOKEN: ${{ github.token }} tests: - name: Tests + name: ๐Ÿงช Tests runs-on: ubuntu-latest steps: - - name: Checkout + - name: ๐Ÿ“ฅ Checkout uses: actions/checkout@v4 - - name: Setup Bun + - name: ๐Ÿ› ๏ธ Setup Bun uses: ./ - - name: Install dependencies + - name: ๐Ÿ“ฆ Install dependencies run: bun install - - name: Run tests + - name: ๐Ÿงช Run tests run: bun test --coverage setup-bun: @@ -74,8 +74,7 @@ jobs: - name: โ–ถ๏ธ Run Bun id: run_bun - run: | - bun --version + run: bun --version setup-bun-from-file: name: setup-bun from (${{ matrix.os }}, ${{ matrix.file.name }})