Skip to content

Fixed smoke grenades #4545

Fixed smoke grenades

Fixed smoke grenades #4545

Workflow file for this run

name: Development tests
on:
push:
jobs:
eslint:
name: eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.9.0
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- run: npm i
- run: npm run lint-quiet
prettier:
name: prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.9.0
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- run: npm i
- run: npm run check_prettier
interfaces-up-to-date:
name: interfaces-up-to-date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.9.0
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- run: npm i
- run: npm run gen-packets-types
- run: npm run gen-packets-interfaces
- run: git diff --exit-code
test-npm-pack-linux:
name: npm-pack-linux
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 21.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm pack
test-mongo-linux:
name: mongo-linux
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.9.0, 20.x, 21.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- name: MongoDB in GitHub Actions
uses: supercharge/mongodb-github-action@1.6.0
- run: npm run test-mongo
test-linux-local:
name: linux-local
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.9.0, 20.x, 21.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm test
test-win-local:
name: win-local
runs-on: windows-latest
strategy:
matrix:
node-version: [20.9.0, 20.x, 21.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm test
test-binaries:
name: Test Binaries
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.9.0
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- run: npm i --omit=dev
- run: npm i -g pkg@5.8.0
- run: pkg --compress GZip -t node18-win-x64 ./bin/2015/h1emuServer.js --output ./bin/h1emuServer-2015-${{ github.ref }}.exe
- run: pkg --compress GZip -t node18-win-x64 ./bin/2016/h1emuServer.js --output ./bin/h1emuServer-2016-${{ github.ref }}.exe
- run: ./bin/h1emuServer-2015-${{ github.ref }}.exe --test
- run: ./bin/h1emuServer-2016-${{ github.ref }}.exe --test