mirror of
https://github.com/wireadmin/wireadmin
synced 2025-06-26 18:28:06 +00:00
chore: add gh action for lint and fix format with prettier
This commit is contained in:
parent
5a67dd3838
commit
4ffc3640d0
49
.github/workflows/lint.yml
vendored
Normal file
49
.github/workflows/lint.yml
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
cache: 'pnpm'
|
||||||
|
|
||||||
|
- run: pnpm install
|
||||||
|
- run: pnpm lint
|
||||||
|
|
||||||
|
ghcr-build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.PRIVATE_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: false
|
@ -6,6 +6,7 @@ node_modules
|
|||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
!.env.example
|
!.env.example
|
||||||
|
src/lib/assets
|
||||||
|
|
||||||
# Ignore files for PNPM, NPM and YARN
|
# Ignore files for PNPM, NPM and YARN
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
|
@ -21,7 +21,11 @@
|
|||||||
} from '$lib/components/ui/form';
|
} from '$lib/components/ui/form';
|
||||||
import { FormItem } from '$lib/components/ui/form/index.js';
|
import { FormItem } from '$lib/components/ui/form/index.js';
|
||||||
import { cn } from '$lib/utils';
|
import { cn } from '$lib/utils';
|
||||||
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '$lib/components/ui/collapsible';
|
import {
|
||||||
|
Collapsible,
|
||||||
|
CollapsibleContent,
|
||||||
|
CollapsibleTrigger,
|
||||||
|
} from '$lib/components/ui/collapsible';
|
||||||
import { Button } from '$lib/components/ui/button';
|
import { Button } from '$lib/components/ui/button';
|
||||||
import toast from 'svelte-french-toast';
|
import toast from 'svelte-french-toast';
|
||||||
|
|
||||||
@ -88,7 +92,7 @@
|
|||||||
<FormLabel>Port</FormLabel>
|
<FormLabel>Port</FormLabel>
|
||||||
<FormInput placeholder={'e.g. 51820'} type={'text'} />
|
<FormInput placeholder={'e.g. 51820'} type={'text'} />
|
||||||
<FormDescription
|
<FormDescription
|
||||||
>This is the port that the WireGuard server will listen on.</FormDescription
|
>This is the port that the WireGuard server will listen on.</FormDescription
|
||||||
>
|
>
|
||||||
<FormValidation />
|
<FormValidation />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
@ -118,7 +122,7 @@
|
|||||||
<FormLabel>DNS</FormLabel>
|
<FormLabel>DNS</FormLabel>
|
||||||
<FormInput placeholder={'e.g. 1.1.1.1'} type={'text'} />
|
<FormInput placeholder={'e.g. 1.1.1.1'} type={'text'} />
|
||||||
<FormDescription
|
<FormDescription
|
||||||
>Optional. This is the DNS server that will be pushed to clients.</FormDescription
|
>Optional. This is the DNS server that will be pushed to clients.</FormDescription
|
||||||
>
|
>
|
||||||
<FormValidation />
|
<FormValidation />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
@ -81,7 +81,6 @@
|
|||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Card>
|
<Card>
|
||||||
|
Loading…
Reference in New Issue
Block a user