-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.22 KB
/
ci_frontend_dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI Frontend DEV
on:
push:
branches-ignore:
- main
paths:
- 'frontend/**'
- 'db/**'
- 'lib/**'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
ci_frontend:
name: CI frontend DEV
defaults:
run:
working-directory: frontend
runs-on: ubuntu-latest
environment: dev
env:
PUBLIC_FRONTEND_URL: ${{ vars.FRONTEND_URL }}
PUBLIC_BACKEND_URL: ${{ vars.BACKEND_URL }}
PRIVATE_MAILER_API_KEY: ${{ secrets.MAILER_API_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Format check
run: pnpm -w run format:check
- name: Install browsers
run: pnpx playwright install --with-deps
- name: Run tests
run: pnpm test
- name: Deploy dev
run: pnpm deploy:dev
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}