mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Update github actions
This commit is contained in:
parent
f46797ba21
commit
e219802305
@ -1,25 +1,25 @@
|
|||||||
env:
|
env:
|
||||||
browser: true
|
browser: true
|
||||||
es6: true
|
es6: true
|
||||||
extends:
|
extends:
|
||||||
- 'eslint:recommended'
|
- "eslint:recommended"
|
||||||
- 'plugin:@typescript-eslint/eslint-recommended'
|
- "plugin:@typescript-eslint/eslint-recommended"
|
||||||
- 'prettier'
|
- "prettier"
|
||||||
globals:
|
globals:
|
||||||
Atomics: readonly
|
Atomics: readonly
|
||||||
SharedArrayBuffer: readonly
|
SharedArrayBuffer: readonly
|
||||||
parser: '@typescript-eslint/parser'
|
parser: "@typescript-eslint/parser"
|
||||||
parserOptions:
|
parserOptions:
|
||||||
ecmaVersion: 6
|
ecmaVersion: 6
|
||||||
sourceType: 'module'
|
sourceType: "module"
|
||||||
ecmaFeatures:
|
ecmaFeatures:
|
||||||
- modules: true
|
- modules: true
|
||||||
plugins:
|
plugins:
|
||||||
- '@typescript-eslint'
|
- "@typescript-eslint"
|
||||||
- 'prettier'
|
- "prettier"
|
||||||
rules:
|
rules:
|
||||||
prettier/prettier: error
|
prettier/prettier: error
|
||||||
no-undef: off
|
no-undef: off
|
||||||
no-unused-vars: off
|
no-unused-vars: off
|
||||||
no-prototype-builtins: off
|
no-prototype-builtins: off
|
||||||
|
linebreak-style: off
|
||||||
|
69
.github/workflows/ci.yml
vendored
69
.github/workflows/ci.yml
vendored
@ -1,42 +1,41 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- ModdedGamers-GH-Actions
|
- ModdedGamers-GH-Actions
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
|
name: CI
|
||||||
name: CI
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install ffmpeg
|
sudo apt-get install ffmpeg
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v2-beta
|
|
||||||
with:
|
|
||||||
node-version: 10.x
|
|
||||||
|
|
||||||
- name: Checkout repo
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install Yarn Dependencies
|
|
||||||
run: |
|
|
||||||
yarn
|
|
||||||
cd gulp/
|
|
||||||
yarn
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: Lint
|
- name: Setup Node
|
||||||
run: |
|
uses: actions/setup-node@v2-beta
|
||||||
npx eslint src/js
|
with:
|
||||||
|
node-version: 10.x
|
||||||
|
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Yarn Dependencies
|
||||||
|
run: |
|
||||||
|
yarn
|
||||||
|
cd gulp/
|
||||||
|
yarn
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: |
|
||||||
|
yarn lint
|
||||||
|
@ -8,4 +8,4 @@ useTabs: false
|
|||||||
quoteProps: "consistent"
|
quoteProps: "consistent"
|
||||||
bracketSpacing: true
|
bracketSpacing: true
|
||||||
arrowParens: avoid
|
arrowParens: avoid
|
||||||
endOfLine: "lf"
|
endOfLine: auto
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "./gulp/gulp main.serveDev",
|
"dev": "./gulp/gulp main.serveDev",
|
||||||
"tslint": "cd src/js && tsc",
|
"tslint": "cd src/js && tsc",
|
||||||
|
"lint": "npx eslint src/js",
|
||||||
"prettier-all": "prettier --write src/**/*.* && prettier --write gulp/**/*.*",
|
"prettier-all": "prettier --write src/**/*.* && prettier --write gulp/**/*.*",
|
||||||
"publishOnItch": "butler push tmp_standalone_files/shapez.io-standalone-win32-x64 tobspr/shapezio:windows --userversion-file version"
|
"publishOnItch": "butler push tmp_standalone_files/shapez.io-standalone-win32-x64 tobspr/shapezio:windows --userversion-file version"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user