Skip to content

Commit

Permalink
feat: added cool feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Oct 23, 2023
1 parent e7e49e0 commit 36cd4e4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
pull_request:
workflow_dispatch:

permissions:
contents: read
pull-requests: write
checks: write

jobs:
prettier:
name: Prettier
Expand All @@ -12,9 +17,15 @@ jobs:
- uses: actions/checkout@v4
- uses: reviewdog/action-setup@v1
- name: Run prettier
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: |
./dev.sh npm ci
./dev.sh npm run format | reviewdog -f=diff -reporter=github-pr-check
./dev.sh npm run format
TMPFILE=$(mktemp)
git diff > "${TMPFILE}"
git stash -u && git stash drop
reviewdog -f=diff -name=prettier -reporter=github-pr-check < "${TMPFILE}"
eslint:
name: Eslint
Expand All @@ -23,6 +34,9 @@ jobs:
- uses: actions/checkout@v4
- uses: reviewdog/action-setup@v1
- name: Run eslint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: |
./dev.sh npm ci
./dev.sh npm run lint:check -- -f checkstyle | reviewdog -f=checkstyle -reporter=github-pr-check
./dev.sh npm run lint -- -f checkstyle -o eslint.xml || true
reviewdog -f=checkstyle -name=eslint -reporter=github-pr-check < eslint.xml
3 changes: 2 additions & 1 deletion src/components/LandingPage.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<template>
<img class="animate-pulse" src="@/assets/logo.png" alt="NethServer 8 Logo" />
<img class="animate-pulse"
src="@/assets/logo.png" alt="NethServer 8 Logo" />
</template>
5 changes: 5 additions & 0 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<script setup lang="ts">
import LandingPage from '../components/LandingPage.vue'
const loop = ['hello', 'world']
</script>

<template>
<template v-for="item in loop">
<p>{{ item }}</p>
</template>
<main>
<LandingPage />
</main>
Expand Down

0 comments on commit 36cd4e4

Please sign in to comment.