chore(ci/cd): adjust workflows ci/cd files to work with actions/cache

This commit is contained in:
Ilia Mashkov
2025-12-30 19:37:25 +03:00
parent 7c94622b95
commit 53e3d6985b
4 changed files with 53 additions and 172 deletions

View File

@@ -1,45 +1,31 @@
name: Test
on:
push:
branches:
- main
- develop
- feature/*
branches: [main, develop, "feature/*"]
pull_request:
branches:
- main
- develop
branches: [main, develop]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
type-check:
name: Type Check
test:
name: Svelte Checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install
run: yarn install --frozen-lockfile --prefer-offline
- name: Run TypeScript type check
run: yarn tsc --noEmit
- name: Run Svelte check
- name: Type Check
run: yarn svelte-check --threshold warning
- name: Lint
run: yarn oxlint .
# e2e-tests:
# name: E2E Tests (Playwright)
# runs-on: ubuntu-latest