|
1 | 1 | name: Cypress E2E |
| 2 | + |
2 | 3 | on: |
3 | 4 | push: |
4 | | - branches: [master] |
| 5 | + branches: [ master ] |
5 | 6 | pull_request: |
6 | | - branches: [master] |
| 7 | + branches: [ master ] |
| 8 | + |
| 9 | +env: |
| 10 | + PYTHON_VERSION: 3.9 |
| 11 | + |
7 | 12 | jobs: |
8 | 13 | cypress-run-chrome: |
| 14 | + name: Chrome tests (${{ matrix.containers }}) |
9 | 15 | runs-on: ubuntu-latest |
10 | 16 | strategy: |
11 | 17 | matrix: |
12 | | - python-version: [3.9] |
13 | | - containers: [1, 2, 3, 4] |
| 18 | + containers: [ 1, 2, 3, 4 ] |
14 | 19 | services: |
15 | 20 | postgres: |
16 | 21 | image: postgres:14 |
17 | 22 | env: |
18 | 23 | POSTGRES_USER: postgres |
19 | 24 | POSTGRES_PASSWORD: postgres |
20 | 25 | POSTGRES_DB: csm_web_dev |
21 | | - ports: ["5432:5432"] |
| 26 | + ports: [ "5432:5432" ] |
22 | 27 | options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 |
23 | 28 | steps: |
24 | 29 | - name: Checkout |
25 | 30 | uses: actions/checkout@v3 |
26 | | - - name: Set up Python ${{ matrix.python-version }} |
| 31 | + - name: Set up Python ${{ env.PYTHON_VERSION }} |
27 | 32 | uses: actions/setup-python@v4 |
28 | 33 | with: |
29 | | - python-version: ${{ matrix.python-version }} |
| 34 | + python-version: ${{ env.PYTHON_VERSION }} |
30 | 35 | - name: Install Python dependencies |
31 | 36 | run: | |
32 | 37 | python -m pip install --upgrade pip |
@@ -60,28 +65,29 @@ jobs: |
60 | 65 | # better cypress run titles |
61 | 66 | COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}} |
62 | 67 | COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}} |
| 68 | + |
63 | 69 | cypress-run-firefox: |
| 70 | + name: Firefox tests (${{ matrix.containers }}) |
64 | 71 | runs-on: ubuntu-latest |
65 | 72 | strategy: |
66 | 73 | matrix: |
67 | | - python-version: [3.9] |
68 | | - containers: [1, 2, 3, 4] |
| 74 | + containers: [ 1, 2, 3, 4 ] |
69 | 75 | services: |
70 | 76 | postgres: |
71 | 77 | image: postgres:14 |
72 | 78 | env: |
73 | 79 | POSTGRES_USER: postgres |
74 | 80 | POSTGRES_PASSWORD: postgres |
75 | 81 | POSTGRES_DB: csm_web_dev |
76 | | - ports: ["5432:5432"] |
| 82 | + ports: [ "5432:5432" ] |
77 | 83 | options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 |
78 | 84 | steps: |
79 | 85 | - name: Checkout |
80 | 86 | uses: actions/checkout@v3 |
81 | | - - name: Set up Python ${{ matrix.python-version }} |
| 87 | + - name: Set up Python ${{ env.PYTHON_VERSION }} |
82 | 88 | uses: actions/setup-python@v4 |
83 | 89 | with: |
84 | | - python-version: ${{ matrix.python-version }} |
| 90 | + python-version: ${{ env.PYTHON_VERSION }} |
85 | 91 | - name: Install Python dependencies |
86 | 92 | run: | |
87 | 93 | python -m pip install --upgrade pip |
|
0 commit comments