Add svelte ci

This commit is contained in:
2024-03-11 00:25:21 +01:00
parent bb7370ae33
commit 1ee384813b
10 changed files with 2230 additions and 50 deletions

View File

@@ -6,11 +6,11 @@ on:
jobs:
lint:
uses: ./.github/workflows/go_lint.yml
uses: ./.github/workflows/svelte_lint.yml
with:
working-directory: 'backend'
build:
needs: lint
uses: ./.github/workflows/go_build.yml
uses: ./.github/workflows/svelte_build.yml
with:
working-directory: 'backend'

View File

@@ -10,4 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '21.x'
- name: Install dependencies
run: |
cd frontend
npm ci
- name: Build
run: |
cd frontend
npm run build

View File

@@ -5,9 +5,20 @@ on:
required: true
type: string
jobs:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '21.x'
- name: Install dependencies
run: |
cd frontend
npm ci
- name: Lint
run: |
cd frontend
npm run lint