-
-
Notifications
You must be signed in to change notification settings - Fork 28
58 lines (51 loc) · 1.51 KB
/
admin.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
56
57
58
name: Admin
on:
pull_request:
push:
branches:
- main
jobs:
check_applicability:
name: Check applicability
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
paths: '["admin/**", "shared/**", ".github/workflows/admin.yml"]'
skip_after_successful_duplicate: "false"
do_not_skip: '["push"]'
test:
name: Test admin
needs: check_applicability
if: needs.check_applicability.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize repository
uses: ./.github/workflows/actions/init
- name: Run tests
run: npm run admin:test
# TODO: re-enable
# - name: Run Playwright tests
# run: npm run admin:test:playwright
#
# - name: Deploy Playwright Report to GitHub Pages
# uses: rossjrw/pr-preview-action@v1
# if: always()
# with:
# source-dir: admin/playwright-report/
# preview-branch: gh-pages
# umbrella-dir: admin-playwright-report
# action: auto
deploy:
name: Deploy admin on Firebase (social-income-staging)
needs: test
uses: ./.github/workflows/deployment.yml
secrets: inherit
with:
component: admin
project: social-income-staging