gitbutler/.github/workflows/push.yaml

45 lines
941 B
YAML
Raw Normal View History

2023-02-20 15:12:24 +03:00
name: "Test"
on: [push]
jobs:
2023-09-14 09:20:53 +03:00
lint-frontend:
runs-on: ubuntu-latest
steps:
- uses: ./.github/actions/init-env
2023-09-14 09:54:23 +03:00
- run: pnpm lint
2023-09-14 09:20:53 +03:00
check-frontend:
runs-on: ubuntu-latest
steps:
2023-09-14 09:54:23 +03:00
- uses: ./.github/actions/init
- run: pnpm check
2023-09-14 09:20:53 +03:00
unittest-frontend:
runs-on: ubuntu-latest
steps:
2023-09-14 09:54:23 +03:00
- uses: ./.github/actions/init
- run: pnpm test
2023-09-14 09:20:53 +03:00
lint-rust:
runs-on: ubuntu-latest
steps:
2023-09-14 09:54:23 +03:00
- uses: ./.github/actions/init
2023-09-14 09:20:53 +03:00
- run: cargo fmt --check
- run: cargo install cargo-sort
- run: cargo sort --check --workspace
story:
runs-on: ubuntu-latest
steps:
2023-09-14 09:54:23 +03:00
- uses: ./.github/actions/init
- run: pnpm story:build
2023-09-14 09:20:53 +03:00
test:
runs-on: ubuntu-latest
steps:
2023-09-14 09:54:23 +03:00
- uses: ./.github/actions/init-env-tauri
- uses: ./.github/actions/init-env-ui
- run: pnpm build
2023-09-14 09:20:53 +03:00
- run: cargo clippy --all-features
2023-09-14 09:54:23 +03:00
- run: cargo test --locked