draupnir4all-web

git clone git://archive.git.mtrnord.blog/MTRNord/draupnir4all-web.git
Log | Files | Refs | README | LICENSE

commit d2efab2b73d7deca65fc350ab2934c9a0305f237
parent 4c54d5ebd11f283a4beee9ae91721f3f3e38eda6
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 26 Apr 2025 22:08:50 +0200

Add basic CI

Signed-off-by: MTRNord <mtrnord1@gmail.com>

Diffstat:
A.github/workflows/ci.yaml | 39+++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml @@ -0,0 +1,39 @@ +name: Run Lint on Push and Pull Request + +on: + push: + branches: + - main + pull_request: + branches: + - main + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "23" + cache: pnpm + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Restore cache + uses: actions/cache@v4 + with: + path: | + .next/cache + # Generate a new cache whenever packages or source files change. + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + # If source files changed but packages didn't, rebuild from a prior cache. + restore-keys: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.json') }}- + - name: Install dependencies + run: pnpm install + - name: Lint + run: pnpm lint