-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (45 loc) · 1.19 KB
/
scripts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: scripts
on: [push]
env:
ASSETS_DIR: null
BLOCKBENCH_PATH: null
DATAPACK_MCMETA: null
MINECRAFT_PATH: null
RESOURCEPACK_MCMETA: null
WORLD_NAME: omega-flowey-remastered
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Yarn 3.6.3
run: corepack enable
- name: Setup cache
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache-dependency-path: yarn.lock
node-version-file: package.json
- run: yarn
- name: Run Prettier
run: yarn start lint.scripts.prettier.check
lint:
runs-on: ubuntu-latest
needs: format
steps:
- uses: actions/checkout@v4
- name: Install Yarn 3.6.3
run: corepack enable
- name: Setup cache
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache-dependency-path: yarn.lock
node-version-file: package.json
- run: yarn
- name: Run ESLint
run: yarn start lint.scripts.eslint.check
- name: Run custom lint scripts on non-datapacks, non-resourcepack files
run: yarn start lint.custom.other
env:
FORCE_COLOR: 2