Skip to content

Commit bcab60b

Browse files
ci: update lint and rojo build
1 parent 3ffaaac commit bcab60b

File tree

4 files changed

+178
-169
lines changed

4 files changed

+178
-169
lines changed

.github/dependabot.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "npm"
4-
directory: "/"
3+
- package-ecosystem: npm
4+
directory: /
55
schedule:
6-
interval: "weekly"
6+
interval: weekly
77
groups:
88
deps:
9-
dependency-type: "production"
9+
dependency-type: production
1010
deps-dev:
11-
dependency-type: "development"
11+
dependency-type: development

.github/workflows/ci.yml

+25-13
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: CI
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
7+
- develop
68
pull_request:
7-
branches: [main]
9+
branches:
10+
- main
11+
- develop
812

913
permissions:
1014
contents: write
@@ -13,26 +17,34 @@ permissions:
1317
jobs:
1418
build:
1519
runs-on: ubuntu-latest
16-
20+
strategy:
21+
matrix:
22+
node-version: [20]
1723
steps:
18-
- uses: actions/checkout@v3
19-
- uses: pnpm/action-setup@v2
24+
- uses: actions/checkout@v4
25+
- name: Install pnpm
26+
uses: pnpm/action-setup@v3
2027
with:
21-
version: 9.0.5
22-
- uses: ok-nick/setup-aftman@v0.4.2
28+
version: 9
29+
- name: Use Node.js ${{ matrix.node-version }}
30+
uses: actions/setup-node@v4
2331
with:
24-
token: ${{ secrets.GITHUB_TOKEN }}
25-
32+
node-version: ${{ matrix.node-version }}
33+
cache: pnpm
2634
- name: Install dependencies
2735
run: pnpm install
2836

37+
- name: Setup Aftman
38+
uses: ok-nick/setup-aftman@v0.4.2
39+
with:
40+
token: ${{ secrets.GITHUB_TOKEN }}
41+
2942
- name: Lint
3043
run: |
31-
pnpm eslint .
32-
pnpm prettier --check src
44+
pnpm lint
3345
3446
- name: Compile
35-
run: pnpm build:dev --verbose
47+
run: pnpm build-prod
3648

3749
- name: Build project
38-
run: rojo build --output place.rbxlx
50+
run: rojo build ./build.project.json --output place.rbxlx

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,28 @@
22
"name": "roblox-ts-project-template",
33
"type": "module",
44
"version": "1.0.0",
5+
"packageManager": "pnpm@9.1.2",
56
"description": "A Roblox game made with React and Roblox-TS",
67
"author": "",
78
"license": "ISC",
89
"keywords": [],
910
"main": "index.js",
1011
"scripts": {
1112
"build-prod": "npm run clean && cross-env NODE_ENV=production npx rbxtsc --verbose && npm run darklua",
12-
"sync-prod": "rojo serve ./deploy.project.json",
13+
"sync-prod": "rojo serve ./build.project.json",
1314
"build-dev": "cross-env NODE_ENV=development npx rbxtsc",
1415
"watch-dev": "cross-env NODE_ENV=development npx rbxtsc -w",
1516
"sync-dev": "rojo serve",
1617
"clean": "npx rimraf out/ && npx rimraf dist",
1718
"darklua": "darklua process out dist --verbose",
1819
"eslint-config": "npx @eslint/config-inspector",
19-
"lint": "eslint . --fix"
20+
"lint": "eslint --no-config-lookup --config eslint.config.js --max-warnings 0 ."
2021
},
2122
"dependencies": {
2223
"@flamework/components": "^1.2.2",
2324
"@flamework/core": "^1.2.2",
2425
"@flamework/networking": "^1.2.2",
25-
"@isentinel/eslint-config": "^0.5.2",
26+
"@isentinel/eslint-config": "^0.5.6",
2627
"@rbxts/inspect": "^1.0.1",
2728
"@rbxts/janitor": "1.15.7-ts.0",
2829
"@rbxts/lapis": "^0.3.0",

0 commit comments

Comments
 (0)