Update CI for new runner image #5

Manually merged
MichaelBradley merged 7 commits from actions into main 2025-02-23 08:20:15 -05:00
7 changed files with 4930 additions and 2314 deletions

View file

@ -10,11 +10,13 @@ name: Audit
jobs: jobs:
build: build:
name: Audit name: Audit
runs-on: docker runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Node - name: Set up Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with:
cache: npm
- name: Audit - name: Audit
run: yarn audit run: npm audit

View file

@ -6,30 +6,39 @@ name: Push
jobs: jobs:
lint: lint:
name: Lint name: Lint
runs-on: docker runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Node - name: Set up Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with:
cache: npm
- name: Install dependencies - name: Install dependencies
run: yarn install run: npm install
- name: Check code formatting - name: Check code formatting
run: yarn lint:prettier run: npm run lint:prettier
- name: Check code quality - name: Check code quality
run: yarn lint:eslint run: npm run lint:eslint
- name: Check types - name: Check types
run: yarn lint:tsc run: npm run lint:tsc
build: build:
name: Build name: Build
runs-on: docker runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Node - name: Set up Node
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with:
cache: npm
- name: Install dependencies - name: Install dependencies
run: yarn install run: npm install
- name: Build - name: Build
run: yarn build run: npm run build
- name: Save build
uses: forgejo/upload-artifact@v4
with:
name: webroot.zip
path: dist/prod

View file

@ -1 +1,2 @@
public/ public/
pnpm-lock.yaml

4905
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -6,10 +6,10 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "bash render.bash", "build": "bash render.bash",
"build:targets": "yarn build:client && yarn build:server", "build:targets": "npm run build:client && npm run build:server",
"build:client": "tsc -b && vite build --outDir dist/client", "build:client": "tsc -b && vite build --outDir dist/client",
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx", "build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",
"lint": "yarn lint:tsc && yarn lint:eslint && yarn lint:prettier", "lint": "npm run lint:tsc && npm run lint:eslint && npm run lint:prettier",
"lint:prettier": "prettier --check .", "lint:prettier": "prettier --check .",
"lint:eslint": "eslint .", "lint:eslint": "eslint .",
"lint:tsc": "tsc -b --noEmit", "lint:tsc": "tsc -b --noEmit",

View file

@ -4,7 +4,7 @@ set -o nounset
set -o pipefail set -o pipefail
set -o xtrace set -o xtrace
yarn "build:targets" npm run "build:targets"
PROD='dist/prod' PROD='dist/prod'
if [[ -d "$PROD" ]]; then if [[ -d "$PROD" ]]; then

2301
yarn.lock

File diff suppressed because it is too large Load diff