mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-23 00:55:43 +00:00
ef0690d511
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
64 lines
1.3 KiB
YAML
64 lines
1.3 KiB
YAML
name: Frontend / E2E
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
|
with:
|
|
version: 6.0.2
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --shamefully-hoist
|
|
working-directory: frontend
|
|
|
|
- name: Run Lint
|
|
run: pnpm run lint:ci
|
|
working-directory: frontend
|
|
|
|
- name: Run Typecheck
|
|
run: pnpm run typecheck
|
|
working-directory: frontend
|
|
|
|
integration-tests:
|
|
name: Integration Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Task
|
|
uses: arduino/setup-task@v1
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: 1.19
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
|
with:
|
|
version: 6.0.2
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
working-directory: frontend
|
|
|
|
- name: Run Integration Tests
|
|
run: task test:ci
|