Skip to content

Adaptation for version 1.27 #25

Adaptation for version 1.27

Adaptation for version 1.27 #25

Workflow file for this run

name: pr
on:
pull_request:
branches:
- main
jobs:
checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
check:
- eslint
- prettier
- tsgo
- vitest
- build
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.14"
- uses: actions/cache@v6
with:
path: |
node_modules
~/.bun/install/cache
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
- run: bun install
- name: Lint
if: matrix.check == 'eslint'
run: bun lint
- name: Format check
if: matrix.check == 'prettier'
run: bun fmt --check
- name: Type check
if: matrix.check == 'tsgo'
run: bun tsgo -b
- name: Test
if: matrix.check == 'vitest'
run: bun vitest --run
- name: Build
id: build
if: matrix.check == 'build'
run: bun bundle
- name: Upload css assets
if: steps.build.outcome == 'success'
uses: actions/upload-artifact@v7
with:
name: themes
path: dist/*.css
- name: Upload templates assets
if: steps.build.outcome == 'success'
uses: actions/upload-artifact@v7
with:
name: templates
path: templates