-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (73 loc) · 2.17 KB
/
test.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Test Action
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
jobs:
test-action-sharding:
strategy:
fail-fast: false
matrix:
shard: [1, 2]
runs-on: ubuntu-latest
env:
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
CURRENTS_API_URL: ${{ secrets.CURRENTS_API_URL }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Print inputs for debugging (Sharding)
run: |
echo "Key: ${{ env.CURRENTS_RECORD_KEY }}"
echo "Matrix Index: ${{ matrix.shard }}"
- name: Run My Action (Sharding)
id: sharding_action
uses: ./
with:
debug: true
pw-output-dir: test-results
matrix-index: ${{ matrix.shard }}
matrix-total: 2
- name: Verify Action Output (Sharding)
run: |
echo "Extra Playwright Flags: ${{ steps.sharding_action.outputs.extra-pw-flags }}"
test-action-or8n:
strategy:
fail-fast: false
matrix:
shard: [1, 2]
runs-on: ubuntu-latest
env:
CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }}
CURRENTS_API_KEY: ${{ secrets.CURRENTS_API_KEY }}
CURRENTS_REST_API_URL: ${{ secrets.CURRENTS_REST_API_URL }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Print inputs for debugging (Or8n)
run: |
echo "API Key: ${{ env.CURRENTS_API_KEY }}"
echo "Project ID: ${{ env.CURRENTS_PROJECT_ID }}"
- name: Run My Action (Or8n)
id: or8n_action
uses: ./
with:
or8n: true
api-key: ${{ env.CURRENTS_API_KEY }}
project-id: ${{ env.CURRENTS_PROJECT_ID }}
pw-output-dir: basic/test-results
- name: Verify Action Output (Or8n)
run: |
echo "Extra Playwright Flags: ${{ steps.or8n_action.outputs.extra-pw-flags }}"