Skip to content

Commit

Permalink
fix: replace inlang ninja action with better custom setup
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelSiidorow committed Jan 30, 2025
1 parent d4cfe82 commit ccd643c
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 39 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: i18n

on:
push:

permissions:
contents: read

jobs:
checks:
name: validate i18n
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@e303250a2450c28e843bf798954fac81d4835f68
with:
version: 9.15.4

- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22.13.0
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Validate
run: pnpm i18n:validate

- name: Lint
run: pnpm i18n:lint
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: ci
on:
push:
release:
Expand All @@ -11,8 +11,8 @@ env:
# Change this to upload the built image to your own organization.
docker_tag_prefix: ghcr.io/tietokilta
jobs:
build:
name: Format, Lint, Check types & Build
checks:
name: format, lint, check types, build, test
runs-on: ubuntu-latest
services:
postgres:
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/ninja_i18n.yml

This file was deleted.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@
"db:push:force": "drizzle-kit push --force",
"db:seed": "tsx --env-file=.env src/lib/server/db/seed.ts",
"db:migrate": "drizzle-kit migrate",
"db:studio": "drizzle-kit studio"
"db:studio": "drizzle-kit studio",
"i18n:validate": "inlang validate --project project.inlang",
"i18n:lint": "inlang lint --project project.inlang"
},
"devDependencies": {
"@eslint/compat": "^1.2.5",
"@eslint/js": "^9.19.0",
"@inlang/cli": "^2.18.1",
"@inlang/message-lint-rule-empty-pattern": "^1.4.8",
"@inlang/message-lint-rule-identical-pattern": "^1.5.9",
"@inlang/message-lint-rule-missing-translation": "^1.4.8",
Expand Down
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ccd643c

Please sign in to comment.