mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
parent
605d8f057f
commit
5230591dc2
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -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
|
||||
|
||||
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -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
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"prepare": "eslint src",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
"electron": "wait-on tcp:3000 && electron ."
|
||||
@ -36,6 +37,9 @@
|
||||
"eslintConfig": {
|
||||
"extends": "react-app"
|
||||
},
|
||||
"prettier": {
|
||||
"endOfLine": "auto"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user