|
| 1 | + |
| 2 | +# This worklflow will perform following actions when a release is published: |
| 3 | +# - Fetch Latest release. |
| 4 | +# - Build the latest docker image in production. |
| 5 | +# - Build release and commit to repo |
| 6 | +# - Push the docker image to Github Artifact Registry-Prod. |
| 7 | +# - Rollout latest docker image to GKE. |
| 8 | +# |
| 9 | +# Maintainers: |
| 10 | +# - name: Nisha Sharma |
| 11 | +# - email: nisha.sharma@uni-jena.de |
| 12 | + |
1 | 13 | name : Build and Deploy to Prod |
2 | 14 |
|
3 | 15 | on: |
|
13 | 25 | IMAGE: nmrium |
14 | 26 |
|
15 | 27 | jobs: |
16 | | - e2etest: |
17 | | - runs-on: ubuntu-latest |
18 | | - strategy: |
19 | | - matrix: |
20 | | - project: [chromium, firefox, webkit] |
21 | | - fail-fast: false |
22 | | - steps: |
23 | | - - uses: actions/checkout@v3 |
24 | | - - uses: actions/setup-node@v3 |
25 | | - with: |
26 | | - node-version: 16.x |
27 | | - - name: Install dependencies |
28 | | - run: npm ci |
29 | | - - name: Install Playwright |
30 | | - run: npx playwright install --with-deps |
31 | | - - name: Build test application |
32 | | - env: |
33 | | - NODE_OPTIONS: '--max_old_space_size=4096' |
34 | | - run: npm run build-no-minify |
35 | | - - name: Run E2E tests on ${{ matrix.project }} |
36 | | - run: npx playwright test --project ${{ matrix.project }} |
37 | | - continue-on-error: ${{ matrix.project == 'webkit' }} |
38 | | - |
39 | | - lint: |
40 | | - runs-on: ubuntu-latest |
41 | | - steps: |
42 | | - - uses: actions/checkout@v2 |
43 | | - - uses: actions/setup-node@v2 |
44 | | - with: |
45 | | - node-version: 16.x |
46 | | - - name: Install dependencies |
47 | | - run: npm ci |
48 | | - - name: Run ESLint |
49 | | - run: npm run eslint |
50 | | - - name: Run Prettier |
51 | | - run: npm run prettier |
52 | | - - name: Check types |
53 | | - run: npm run check-types |
54 | | - |
55 | 28 | setup-build-publish-deploy-prod: |
56 | 29 | name: Deploy to prod |
57 | 30 | if: github.ref == 'refs/heads/prod-helm-deploy' |
|
0 commit comments