From 1a06bf678ea6ef35b0a85ba1d71d701688f47833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82ngelo=20Tadeucci?= Date: Tue, 6 Jun 2023 19:19:29 -0300 Subject: [PATCH 01/10] Create format.yml --- .github/workflows/format.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 00000000..97e38bd7 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,21 @@ +name: Format +on: + pull_request: + branches: [main] +jobs: + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} + - uses: actions/setup-node@v1 + with: + node-version: "18.x" + - run: npm ci + - run: npm run format + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v4.1.2 + with: + commit_message: Apply formatting changes + branch: ${{ github.head_ref }} -- 2.47.2 From 0f4ea82e7b0db0788cacfcd574de5af8a78da551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82ngelo=20Tadeucci?= Date: Tue, 6 Jun 2023 19:21:30 -0300 Subject: [PATCH 02/10] Update format.yml --- .github/workflows/format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 97e38bd7..0360d859 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -13,7 +13,7 @@ jobs: with: node-version: "18.x" - run: npm ci - - run: npm run format + - run: npm run prettier - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4.1.2 with: -- 2.47.2 From 0e831c8b74f3def8224f494fe17293129b1e9d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82ngelo=20Tadeucci?= Date: Tue, 6 Jun 2023 19:22:43 -0300 Subject: [PATCH 03/10] Update index.ts --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 689fa854..29128e05 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,8 +7,8 @@ import { app } from "./app"; const options = { key: fs.readFileSync("static/certs/key.pem"), - cert: fs.readFileSync("static/certs/cert.pem"), - passphrase: "123456" + cert: fs.readFileSync("static/certs/cert.pem"), +passphrase: "123456" }; // const server = http.createServer(app).listen(80); -- 2.47.2 From b557733859bb60f240ab494176579f095be28441 Mon Sep 17 00:00:00 2001 From: AngeloTadeucci Date: Tue, 6 Jun 2023 22:26:56 +0000 Subject: [PATCH 04/10] Apply formatting changes --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 29128e05..689fa854 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,8 +7,8 @@ import { app } from "./app"; const options = { key: fs.readFileSync("static/certs/key.pem"), - cert: fs.readFileSync("static/certs/cert.pem"), -passphrase: "123456" + cert: fs.readFileSync("static/certs/cert.pem"), + passphrase: "123456" }; // const server = http.createServer(app).listen(80); -- 2.47.2 From fdbfce0aac3d66a2af6112439b9e2f67f921ebe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82ngelo=20Tadeucci?= Date: Tue, 6 Jun 2023 19:28:00 -0300 Subject: [PATCH 05/10] Update format.yml --- .github/workflows/format.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 0360d859..0e501c9b 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,4 +1,4 @@ -name: Format +name: Prettier on: pull_request: branches: [main] @@ -17,5 +17,5 @@ jobs: - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4.1.2 with: - commit_message: Apply formatting changes + commit_message: Apply prettier changes branch: ${{ github.head_ref }} -- 2.47.2 From 894001e77c74f0ed5b75cdf480bf1c1b23ad6914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82ngelo=20Tadeucci?= Date: Tue, 6 Jun 2023 19:30:43 -0300 Subject: [PATCH 06/10] fix file name --- .github/workflows/{format.yml => prettier.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{format.yml => prettier.yml} (100%) diff --git a/.github/workflows/format.yml b/.github/workflows/prettier.yml similarity index 100% rename from .github/workflows/format.yml rename to .github/workflows/prettier.yml -- 2.47.2 From 01a0a4faf3e9ea0a76fbd9edf7e4af1ec2debe6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82ngelo=20Tadeucci?= Date: Tue, 6 Jun 2023 19:36:05 -0300 Subject: [PATCH 07/10] test new prettier action --- .github/workflows/prettier.yml | 8 +++----- src/index.ts | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 0e501c9b..052f8232 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -9,11 +9,9 @@ jobs: - uses: actions/checkout@v2 with: ref: ${{ github.head_ref }} - - uses: actions/setup-node@v1 - with: - node-version: "18.x" - - run: npm ci - - run: npm run prettier + - uses: actionsx/prettier@v2 + with: + args: --write . - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4.1.2 with: diff --git a/src/index.ts b/src/index.ts index 689fa854..98290c15 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,8 +7,8 @@ import { app } from "./app"; const options = { key: fs.readFileSync("static/certs/key.pem"), - cert: fs.readFileSync("static/certs/cert.pem"), - passphrase: "123456" +cert: fs.readFileSync("static/certs/cert.pem"), + passphrase: "123456" }; // const server = http.createServer(app).listen(80); -- 2.47.2 From 51934176d5980ded426eddf14c8468b310bd329e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82ngelo=20Tadeucci?= Date: Tue, 6 Jun 2023 19:36:41 -0300 Subject: [PATCH 08/10] Update prettier.yml --- .github/workflows/prettier.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 052f8232..fa81933c 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -10,8 +10,8 @@ jobs: with: ref: ${{ github.head_ref }} - uses: actionsx/prettier@v2 - with: - args: --write . + with: + args: --write . - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4.1.2 with: -- 2.47.2 From bf1435e21ec0e08bfc032913ea33079a245ddde9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82ngelo=20Tadeucci?= Date: Tue, 6 Jun 2023 19:38:03 -0300 Subject: [PATCH 09/10] revert --- .github/workflows/prettier.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index fa81933c..0e501c9b 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -9,9 +9,11 @@ jobs: - uses: actions/checkout@v2 with: ref: ${{ github.head_ref }} - - uses: actionsx/prettier@v2 + - uses: actions/setup-node@v1 with: - args: --write . + node-version: "18.x" + - run: npm ci + - run: npm run prettier - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4.1.2 with: -- 2.47.2 From 035f9111c088569a5a8459c14816ffcf23bbbbce Mon Sep 17 00:00:00 2001 From: AngeloTadeucci Date: Tue, 6 Jun 2023 22:38:31 +0000 Subject: [PATCH 10/10] Apply prettier changes --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 98290c15..689fa854 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,8 +7,8 @@ import { app } from "./app"; const options = { key: fs.readFileSync("static/certs/key.pem"), -cert: fs.readFileSync("static/certs/cert.pem"), - passphrase: "123456" + cert: fs.readFileSync("static/certs/cert.pem"), + passphrase: "123456" }; // const server = http.createServer(app).listen(80); -- 2.47.2