Merge pull request #81 from EETagent/sveltekit_devops

(frontend) (devops) Add CI for frontend
This commit is contained in:
Vojtěch Jungmann 2022-12-06 00:22:48 +01:00 committed by GitHub
commit bf3d6d4378
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 1 deletions

39
.github/workflows/sveltekit.yml vendored Normal file
View file

@ -0,0 +1,39 @@
name: SvelteKit
on:
push: { branches: [master] }
pull_request:
branches: [ "*" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out 🚚
uses: actions/checkout@v3
- name: Extract frontend 🚜
run: |
shopt -s extglob
rm -r !(frontend)/
mv frontend/* ./
- name: Install pnpm 📦
uses: pnpm/action-setup@v2
with:
version: 7
- name: Setup NodeJS ⚒️
uses: actions/setup-node@v3
with:
node-version: 19
cache: "pnpm"
- name: Install dependencies 🚀
run: pnpm install
- name: Build 🔨
run: pnpm run build

View file

@ -1,7 +1,6 @@
<script lang="ts">
import { apiGetCandidatePortfolio, apiResetCandidatePassword } from '$lib/@api/admin';
import type { CandidateData } from '$lib/stores/candidate';
import ListElement from './ListElement.svelte';
export let id: number;
export let candidate: CandidateData;