From acf412172770406b2124ca9d5bc36aa8ee587ea2 Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 21 Apr 2023 16:04:00 +0100 Subject: [PATCH 1/6] Create node.js.yml --- .github/workflows/node.js.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..98283d8 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,32 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "typescript" ] + pull_request: + branches: [ "typescript" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - run: npm run dev:updateCheck + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build + - run: npm test From 98060d67b7b71f5a7ec41ff6407715b0ae769eff Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 21 Apr 2023 16:05:10 +0100 Subject: [PATCH 2/6] Unfuck the workflow --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 98283d8..c00d94d 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,13 +20,13 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - run: npm run dev:updateCheck - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' + - run: npm run dev:updateCheck - run: npm ci - run: npm run build - run: npm test From 3a84e8409078e5bba2dc93493105cd19833f1d3a Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 21 Apr 2023 16:06:14 +0100 Subject: [PATCH 3/6] Attempt to unfuck the workflow --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c00d94d..7ab69d6 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -26,7 +26,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm run dev:updateCheck - run: npm ci + - run: npm run dev:updateCheck - run: npm run build - run: npm test From c55c091872cfbdc4780529758202f2ea6a4de639 Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 21 Apr 2023 16:07:34 +0100 Subject: [PATCH 4/6] Unfuck the workflow --- .github/workflows/node.js.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7ab69d6..6d65cb9 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -27,6 +27,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - - run: npm run dev:updateCheck + # Don't run updateCheck for now + #- run: npm run dev:updateCheck - run: npm run build - run: npm test From 93b4e701c6b827f48639cfe261eaf0c340833d22 Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 21 Apr 2023 16:08:38 +0100 Subject: [PATCH 5/6] Unfuck the workflow --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 6d65cb9..0928eff 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -30,4 +30,4 @@ jobs: # Don't run updateCheck for now #- run: npm run dev:updateCheck - run: npm run build - - run: npm test + #- run: npm test From ec24b6433e69202c5223a438cccb5738eacb7a43 Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 21 Apr 2023 16:13:30 +0100 Subject: [PATCH 6/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a70667e..ec7cb53 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# mc-beta-server [![CodeFactor](https://www.codefactor.io/repository/github/tgpholly/mc-beta-server/badge/typescript)](https://www.codefactor.io/repository/github/tgpholly/mc-beta-server/overview/typescript) +# mc-beta-server [![CodeFactor](https://www.codefactor.io/repository/github/tgpholly/mc-beta-server/badge/typescript)](https://www.codefactor.io/repository/github/tgpholly/mc-beta-server/overview/typescript) [![Node.js CI](https://github.com/tgpholly/mc-beta-server/actions/workflows/node.js.yml/badge.svg?branch=typescript)](https://github.com/tgpholly/mc-beta-server/actions/workflows/node.js.yml) me trying to understand minecraft beta's protocol