mirror of
https://github.com/BradNut/personal-website-sveltekit
synced 2025-09-08 23:20:18 +00:00
Adding different svelte check github action.
This commit is contained in:
parent
fb7c522288
commit
0a421471f2
2 changed files with 47 additions and 46 deletions
46
.github/workflows/node.js.yml
vendored
46
.github/workflows/node.js.yml
vendored
|
|
@ -1,46 +0,0 @@
|
|||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
|
||||
|
||||
name: Node.js CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['master', 'development']
|
||||
pull_request:
|
||||
branches: ['master']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x, 20.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- uses: pnpm/action-setup@v2
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: 8
|
||||
run_install: false
|
||||
- name: Get pnpm store directory
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||
- uses: actions/cache@v3
|
||||
name: Setup pnpm cache
|
||||
with:
|
||||
path: ${{ env.STORE_PATH }}
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
- run: pnpm run build
|
||||
- run: pnpm test
|
||||
47
.github/workflows/svelte_check.yml
vendored
Normal file
47
.github/workflows/svelte_check.yml
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
name: Run_Svelte_Check_on_PRs
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
WALLABAG_MAX_ARTICLES: ${{ secrets.WALLABAG_MAX_ARTICLES }}
|
||||
WALLABAG_MAX_PAGES: ${{ secrets.WALLABAG_MAX_PAGES }}
|
||||
WALLABAG_CLIENT_ID: ${{ secrets.WALLABAG_CLIENT_ID }}
|
||||
WALLABAG_CLIENT_SECRET: ${{ secrets.WALLABAG_CLIENT_SECRET }}
|
||||
WALLABAG_USERNAME: ${{ secrets.WALLABAG_USERNAME }}
|
||||
WALLABAG_PASSWORD: ${{ secrets.WALLABAG_PASSWORD }}
|
||||
WALLABAG_URL: ${{ secrets.WALLABAG_URL }}
|
||||
BANDCAMP_USERNAME: ${{ secrets.BANDCAMP_USERNAME }}
|
||||
PUBLIC_SITE_URL: ${{ secrets.PUBLIC_SITE_URL }}
|
||||
PUBLIC_URL: ${{ secrets.PUBLIC_URL }}
|
||||
PUBLIC_UMAMI_DO_NOT_TRACK: ${{ secrets.PUBLIC_UMAMI_DO_NOT_TRACK }}
|
||||
PUBLIC_UMAMI_URL: ${{ secrets.PUBLIC_UMAMI_URL }}
|
||||
PUBLIC_UMAMI_ID: ${{ secrets.PUBLIC_UMAMI_ID }}
|
||||
PAGE_SIZE: ${{ secrets.PAGE_SIZE }}
|
||||
USE_REDIS_CACHE: ${{ secrets.USE_REDIS_CACHE }}
|
||||
REDIS_URI: ${{ secrets.REDIS_URI }}
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: pnpm-setup
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.18.2
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Run Svelte Check
|
||||
run: pnpm check
|
||||
Loading…
Reference in a new issue