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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..8dab970 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,39 @@ +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 core + run: npm run build:core + + - name: Build lobby + run: npm run build:lobby + + # - name: Run tests + # run: npm run test