Add npm ci to GitHub actions.

Formatting currently being forced to preserve line endings because for
whatever reason that's only causing problems in CI.
This commit is contained in:
Dan Albert
2022-03-03 23:47:04 -08:00
parent 605d8f057f
commit 5230591dc2
3 changed files with 24 additions and 0 deletions

View File

@@ -15,6 +15,11 @@ jobs:
with:
python-version: "3.10"
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install environment
run: |
python -m venv ./venv
@@ -40,6 +45,11 @@ jobs:
run: |
[IO.File]::WriteAllLines($pwd.path + "\resources\buildnumber", $env:GITHUB_RUN_NUMBER)
- name: npm ci
run: |
cd client
npm ci
- name: Build binaries
run: |
./venv/scripts/activate

View File

@@ -17,6 +17,11 @@ jobs:
with:
python-version: "3.10"
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install environment
run: |
python -m venv ./venv
@@ -32,6 +37,11 @@ jobs:
run: |
New-Item -ItemType file resources\final
- name: npm ci
run: |
cd client
npm ci
- name: mypy game
run: |
./venv/scripts/activate