From 65051992542fce490755ab567b149fc0cf5e2808 Mon Sep 17 00:00:00 2001 From: Ludovic Muller Date: Sun, 14 Jan 2024 18:14:38 +0100 Subject: [PATCH 1/3] chore: set indent_size to 2 for yaml files --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index d86adc0..59befc5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,5 +15,5 @@ quote_type = single max_line_length = off trim_trailing_whitespace = false -[*.json] +[*.{json,yml,yaml}] indent_size = 2 From 7853c6424276ee3589dde6ee3688eb902a22b4fb Mon Sep 17 00:00:00 2001 From: Ludovic Muller Date: Sun, 14 Jan 2024 18:15:16 +0100 Subject: [PATCH 2/3] ci: configure GitHub Actions to run a build --- .github/workflows/test.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..8087276 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,36 @@ +name: Run Tests + +on: + push: + branches: + - "**" + tags: + - "**" + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: + - 18 + - 20 + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.JS ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + # - name: Run tests + # run: npm run test From f30c30ec661d8ff6d7c7afab5b869824734e69cc Mon Sep 17 00:00:00 2001 From: Ludovic Muller Date: Sun, 14 Jan 2024 18:20:09 +0100 Subject: [PATCH 3/3] ci: build lobby and core --- .github/workflows/test.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8087276..8dab970 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -29,8 +29,11 @@ jobs: - name: Install dependencies run: npm ci - - name: Build - run: npm run build + - name: Build core + run: npm run build:core + + - name: Build lobby + run: npm run build:lobby # - name: Run tests # run: npm run test