From 0a421471f2727127454fd486487e1dac9fb4e6f1 Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Wed, 24 Jan 2024 17:26:16 -0800 Subject: [PATCH] Adding different svelte check github action. --- .github/workflows/node.js.yml | 46 ----------------------------- .github/workflows/svelte_check.yml | 47 ++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 46 deletions(-) delete mode 100644 .github/workflows/node.js.yml create mode 100644 .github/workflows/svelte_check.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index efbe65c..0000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/svelte_check.yml b/.github/workflows/svelte_check.yml new file mode 100644 index 0000000..d43989a --- /dev/null +++ b/.github/workflows/svelte_check.yml @@ -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 \ No newline at end of file