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:
|
||||
browser: true
|
||||
es6: true
|
||||
browser: true
|
||||
es6: true
|
||||
extends:
|
||||
- 'eslint:recommended'
|
||||
- 'plugin:@typescript-eslint/eslint-recommended'
|
||||
- 'prettier'
|
||||
- "eslint:recommended"
|
||||
- "plugin:@typescript-eslint/eslint-recommended"
|
||||
- "prettier"
|
||||
globals:
|
||||
Atomics: readonly
|
||||
SharedArrayBuffer: readonly
|
||||
parser: '@typescript-eslint/parser'
|
||||
Atomics: readonly
|
||||
SharedArrayBuffer: readonly
|
||||
parser: "@typescript-eslint/parser"
|
||||
parserOptions:
|
||||
ecmaVersion: 6
|
||||
sourceType: 'module'
|
||||
ecmaFeatures:
|
||||
- modules: true
|
||||
ecmaVersion: 6
|
||||
sourceType: "module"
|
||||
ecmaFeatures:
|
||||
- modules: true
|
||||
plugins:
|
||||
- '@typescript-eslint'
|
||||
- 'prettier'
|
||||
rules:
|
||||
prettier/prettier: error
|
||||
no-undef: off
|
||||
no-unused-vars: off
|
||||
no-prototype-builtins: off
|
||||
|
||||
- "@typescript-eslint"
|
||||
- "prettier"
|
||||
rules:
|
||||
prettier/prettier: error
|
||||
no-undef: off
|
||||
no-unused-vars: 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
|
||||
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- ModdedGamers-GH-Actions
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- ModdedGamers-GH-Actions
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
|
||||
name: CI
|
||||
setup:
|
||||
name: CI
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
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 ..
|
||||
steps:
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install ffmpeg
|
||||
|
||||
- name: Lint
|
||||
run: |
|
||||
npx eslint src/js
|
||||
- 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
|
||||
run: |
|
||||
yarn lint
|
||||
|
@ -8,4 +8,4 @@ useTabs: false
|
||||
quoteProps: "consistent"
|
||||
bracketSpacing: true
|
||||
arrowParens: avoid
|
||||
endOfLine: "lf"
|
||||
endOfLine: auto
|
||||
|
@ -9,6 +9,7 @@
|
||||
"scripts": {
|
||||
"dev": "./gulp/gulp main.serveDev",
|
||||
"tslint": "cd src/js && tsc",
|
||||
"lint": "npx eslint src/js",
|
||||
"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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user