-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.22 KB
/
pipeline.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
name: Deployment pipeline
on:
push:
branches:
- main
jobs:
simple_deployment_pipeline:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Install dependencies for backend
run: npm ci
- name: Lint backend
run: npm run lint:backend
- name: Test backend
run: npm run test:backend
- name: Install dependencies for frontend
run: npm run install:frontend
- name: Check style for frontend
run: npm run lint:frontend
- name: Build for frontend
run: npm run build:frontend
- name: Test for frontend
run: npm run test:frontend
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: e2e tests
run: npm run test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Deploy app
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}