2022-09-09 19:34:19 +00:00
|
|
|
name: Frontend / E2E
|
2022-09-05 08:26:21 +00:00
|
|
|
|
2022-09-03 09:30:45 +00:00
|
|
|
on:
|
2022-09-09 18:49:51 +00:00
|
|
|
workflow_call:
|
2022-09-03 09:30:45 +00:00
|
|
|
|
|
|
|
jobs:
|
2023-02-18 06:41:01 +00:00
|
|
|
lint:
|
|
|
|
name: Lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-11-15 17:08:46 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-02-18 06:41:01 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2024-02-14 15:11:03 +00:00
|
|
|
- uses: pnpm/action-setup@v3.0.0
|
2023-02-18 06:41:01 +00:00
|
|
|
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
|
2022-09-03 09:30:45 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-09-09 19:34:19 +00:00
|
|
|
- name: Checkout
|
2023-11-15 17:08:46 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-09-04 03:06:55 +00:00
|
|
|
with:
|
2022-09-09 19:34:19 +00:00
|
|
|
fetch-depth: 0
|
2022-09-04 03:06:55 +00:00
|
|
|
|
2022-09-09 19:34:19 +00:00
|
|
|
- name: Install Task
|
|
|
|
uses: arduino/setup-task@v1
|
2022-11-01 02:43:30 +00:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
2022-09-03 09:30:45 +00:00
|
|
|
|
2022-09-04 02:45:10 +00:00
|
|
|
- name: Set up Go
|
2023-12-12 14:44:23 +00:00
|
|
|
uses: actions/setup-go@v5
|
2022-09-04 02:45:10 +00:00
|
|
|
with:
|
2024-01-18 19:45:42 +00:00
|
|
|
go-version: "1.21"
|
2022-09-04 02:45:10 +00:00
|
|
|
|
2023-11-16 03:15:31 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2022-09-04 02:47:53 +00:00
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
|
2024-02-14 15:11:03 +00:00
|
|
|
- uses: pnpm/action-setup@v3.0.0
|
2022-09-04 02:47:53 +00:00
|
|
|
with:
|
|
|
|
version: 6.0.2
|
2022-09-04 02:45:10 +00:00
|
|
|
|
2022-09-03 09:30:45 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install
|
2022-09-03 09:31:38 +00:00
|
|
|
working-directory: frontend
|
2022-09-03 09:30:45 +00:00
|
|
|
|
2022-09-04 03:06:55 +00:00
|
|
|
- name: Run Integration Tests
|
2022-09-09 19:34:19 +00:00
|
|
|
run: task test:ci
|