Skip to content

chore(deps): update dependencies (minor/patch) #847

chore(deps): update dependencies (minor/patch)

chore(deps): update dependencies (minor/patch) #847

# 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: Lint and build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
check-kotlin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate gradle-wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Lint
uses: musichin/ktlint-check@v2
with:
ktlint-version: '0.48.0'
patterns: |
./kotlin/**/**.kt
!./kotlin/**/generated/**
check-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome ci src
lint-and-build:
needs: [ check-kotlin, check-typescript ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
build-root-directory: kotlin
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup next cache
with:
path: |
${{ github.workspace }}/.next/cache
${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-next-store-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-next-store-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install dependencies
run: pnpm install
- name: Download template contents
run: |
curl -L -o temp.zip https://github.com/turtton/volglass-docs/archive/refs/heads/main.zip
7z x temp.zip
cp -r volglass-docs-main/posts .
- name: Build
run: pnpm run build
build-docker:
needs: check-kotlin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Download template contents
run: |
curl -L -o temp.zip https://github.com/turtton/volglass-docs/archive/refs/heads/main.zip
7z x temp.zip
cp -r volglass-docs-main/posts .
- name: Build
uses: docker/build-push-action@v5
with:
file: ./Dockerfile
push: false
context: .