|
3 | 3 | name: Check |
4 | 4 |
|
5 | 5 | on: |
6 | | - # Push to master will deploy a beta version |
7 | | - push: |
8 | | - branches: [master, renovate/**] |
9 | | - pull_request: |
10 | | - branches: [master] |
11 | | - # A release via GitHub releases will deploy a latest version |
12 | | - release: |
13 | | - types: [published] |
| 6 | + # Push to master will deploy a beta version |
| 7 | + push: |
| 8 | + branches: [master, renovate/**] |
| 9 | + pull_request: |
| 10 | + branches: [master] |
| 11 | + # A release via GitHub releases will deploy a latest version |
| 12 | + release: |
| 13 | + types: [published] |
14 | 14 |
|
15 | 15 | jobs: |
16 | | - build_and_test: |
17 | | - name: Build & Test |
18 | | - if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} |
19 | | - runs-on: ${{ matrix.os }} |
20 | | - |
21 | | - strategy: |
22 | | - fail-fast: false |
23 | | - matrix: |
24 | | - os: [ubuntu-latest, windows-latest] |
25 | | - node-version: [18, 20, 22] |
26 | | - |
27 | | - steps: |
28 | | - - uses: actions/checkout@v4 |
29 | | - |
30 | | - - name: Use Node.js ${{ matrix.node-version }} |
31 | | - uses: actions/setup-node@v4 |
32 | | - with: |
33 | | - node-version: ${{ matrix.node-version }} |
34 | | - |
35 | | - - name: Enable corepack |
36 | | - run: | |
37 | | - corepack enable |
38 | | - corepack prepare yarn@stable --activate |
39 | | -
|
40 | | - - name: Activate cache for Node.js ${{ matrix.node-version }} |
41 | | - uses: actions/setup-node@v4 |
42 | | - with: |
43 | | - cache: yarn |
44 | | - |
45 | | - - name: Install Dependencies |
46 | | - run: yarn |
47 | | - |
48 | | - - name: Run Tests |
49 | | - env: |
50 | | - TEST_USER_TOKEN: ${{ secrets.APIFY_TEST_USER_API_TOKEN }} |
51 | | - APIFY_CLI_DISABLE_TELEMETRY: 1 |
52 | | - run: yarn test |
53 | | - |
54 | | - test_python_support: |
55 | | - name: Test Python template support |
56 | | - strategy: |
57 | | - fail-fast: false |
58 | | - matrix: |
59 | | - os: [ubuntu-latest, windows-latest] |
60 | | - python-version: ["3.9", "3.10", "3.11", "3.12"] |
61 | | - runs-on: ${{ matrix.os }} |
62 | | - |
63 | | - steps: |
64 | | - - uses: actions/checkout@v4 |
65 | | - |
66 | | - - name: Use Node.js 20 |
67 | | - uses: actions/setup-node@v4 |
68 | | - with: |
69 | | - node-version: 20 |
70 | | - |
71 | | - - name: Enable corepack |
72 | | - run: | |
73 | | - corepack enable |
74 | | - corepack prepare yarn@stable --activate |
75 | | -
|
76 | | - - name: Activate cache for Node.js 20 |
77 | | - uses: actions/setup-node@v4 |
78 | | - with: |
79 | | - cache: yarn |
80 | | - |
81 | | - - name: Install Dependencies |
82 | | - run: yarn |
83 | | - |
84 | | - - name: Set up Python ${{ matrix.python-version }} |
85 | | - uses: actions/setup-python@v5 |
86 | | - with: |
87 | | - python-version: ${{ matrix.python-version }} |
88 | | - |
89 | | - - name: Run Python tests |
90 | | - env: |
91 | | - TEST_USER_TOKEN: ${{ secrets.APIFY_TEST_USER_API_TOKEN }} |
92 | | - APIFY_CLI_DISABLE_TELEMETRY: 1 |
93 | | - run: yarn test-python |
94 | | - |
95 | | - docs: |
96 | | - name: Docs build |
97 | | - if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} |
98 | | - runs-on: ubuntu-latest |
99 | | - steps: |
100 | | - - name: Checkout Source code |
101 | | - uses: actions/checkout@v4 |
102 | | - |
103 | | - - name: Use Node.js 20 |
104 | | - uses: actions/setup-node@v4 |
105 | | - with: |
106 | | - node-version: 20 |
107 | | - |
108 | | - - name: Enable corepack |
109 | | - run: | |
110 | | - corepack enable |
111 | | - corepack prepare yarn@stable --activate |
112 | | -
|
113 | | - - name: Activate cache for Node.js 20 |
114 | | - uses: actions/setup-node@v4 |
115 | | - with: |
116 | | - cache: yarn |
117 | | - |
118 | | - - name: Install Dependencies |
119 | | - run: yarn |
120 | | - |
121 | | - - name: Build & deploy docs |
122 | | - run: | |
123 | | - cd website |
124 | | - yarn |
125 | | - yarn build |
126 | | -
|
127 | | - lint: |
128 | | - name: Lint |
129 | | - runs-on: ubuntu-latest |
130 | | - |
131 | | - steps: |
132 | | - - uses: actions/checkout@v4 |
133 | | - |
134 | | - - name: Use Node.js 20 |
135 | | - uses: actions/setup-node@v4 |
136 | | - with: |
137 | | - node-version: 20 |
138 | | - |
139 | | - - name: Enable corepack |
140 | | - run: | |
141 | | - corepack enable |
142 | | - corepack prepare yarn@stable --activate |
143 | | -
|
144 | | - - name: Activate cache for Node.js 20 |
145 | | - uses: actions/setup-node@v4 |
146 | | - with: |
147 | | - cache: yarn |
148 | | - |
149 | | - - name: Install Dependencies |
150 | | - run: yarn |
151 | | - |
152 | | - - name: Run lint checks |
153 | | - run: yarn lint |
154 | | - |
155 | | - - name: Run format checks |
156 | | - run: yarn format |
| 16 | + build_and_test: |
| 17 | + name: Build & Test |
| 18 | + if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} |
| 19 | + runs-on: ${{ matrix.os }} |
| 20 | + |
| 21 | + strategy: |
| 22 | + fail-fast: false |
| 23 | + matrix: |
| 24 | + os: [ubuntu-latest, windows-latest] |
| 25 | + node-version: [18, 20, 22] |
| 26 | + |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v4 |
| 29 | + |
| 30 | + - name: Use Node.js ${{ matrix.node-version }} |
| 31 | + uses: actions/setup-node@v4 |
| 32 | + with: |
| 33 | + node-version: ${{ matrix.node-version }} |
| 34 | + |
| 35 | + - name: Enable corepack |
| 36 | + run: | |
| 37 | + corepack enable |
| 38 | + corepack prepare yarn@stable --activate |
| 39 | +
|
| 40 | + - name: Activate cache for Node.js ${{ matrix.node-version }} |
| 41 | + uses: actions/setup-node@v4 |
| 42 | + with: |
| 43 | + cache: yarn |
| 44 | + |
| 45 | + - name: Install Dependencies |
| 46 | + run: yarn |
| 47 | + |
| 48 | + - name: Run Tests |
| 49 | + env: |
| 50 | + TEST_USER_TOKEN: ${{ secrets.APIFY_TEST_USER_API_TOKEN }} |
| 51 | + APIFY_CLI_DISABLE_TELEMETRY: 1 |
| 52 | + run: yarn test |
| 53 | + |
| 54 | + test_python_support: |
| 55 | + name: Test Python template support |
| 56 | + strategy: |
| 57 | + fail-fast: false |
| 58 | + matrix: |
| 59 | + os: [ubuntu-latest, windows-latest] |
| 60 | + python-version: ["3.9", "3.10", "3.11", "3.12"] |
| 61 | + runs-on: ${{ matrix.os }} |
| 62 | + |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@v4 |
| 65 | + |
| 66 | + - name: Use Node.js 20 |
| 67 | + uses: actions/setup-node@v4 |
| 68 | + with: |
| 69 | + node-version: 20 |
| 70 | + |
| 71 | + - name: Enable corepack |
| 72 | + run: | |
| 73 | + corepack enable |
| 74 | + corepack prepare yarn@stable --activate |
| 75 | +
|
| 76 | + - name: Activate cache for Node.js 20 |
| 77 | + uses: actions/setup-node@v4 |
| 78 | + with: |
| 79 | + cache: yarn |
| 80 | + |
| 81 | + - name: Install Dependencies |
| 82 | + run: yarn |
| 83 | + |
| 84 | + - name: Set up Python ${{ matrix.python-version }} |
| 85 | + uses: actions/setup-python@v5 |
| 86 | + with: |
| 87 | + python-version: ${{ matrix.python-version }} |
| 88 | + |
| 89 | + - name: Run Python tests |
| 90 | + env: |
| 91 | + TEST_USER_TOKEN: ${{ secrets.APIFY_TEST_USER_API_TOKEN }} |
| 92 | + APIFY_CLI_DISABLE_TELEMETRY: 1 |
| 93 | + run: yarn test-python |
| 94 | + |
| 95 | + docs: |
| 96 | + name: Docs build |
| 97 | + if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} |
| 98 | + runs-on: ubuntu-latest |
| 99 | + steps: |
| 100 | + - name: Checkout Source code |
| 101 | + uses: actions/checkout@v4 |
| 102 | + |
| 103 | + - name: Use Node.js 20 |
| 104 | + uses: actions/setup-node@v4 |
| 105 | + with: |
| 106 | + node-version: 20 |
| 107 | + |
| 108 | + - name: Enable corepack |
| 109 | + run: | |
| 110 | + corepack enable |
| 111 | + corepack prepare yarn@stable --activate |
| 112 | +
|
| 113 | + - name: Activate cache for Node.js 20 |
| 114 | + uses: actions/setup-node@v4 |
| 115 | + with: |
| 116 | + cache: yarn |
| 117 | + |
| 118 | + - name: Install Dependencies |
| 119 | + run: yarn |
| 120 | + |
| 121 | + - name: Build & deploy docs |
| 122 | + run: | |
| 123 | + cd website |
| 124 | + yarn |
| 125 | + yarn build |
| 126 | +
|
| 127 | + lint: |
| 128 | + name: Lint |
| 129 | + runs-on: ubuntu-latest |
| 130 | + |
| 131 | + steps: |
| 132 | + - uses: actions/checkout@v4 |
| 133 | + |
| 134 | + - name: Use Node.js 20 |
| 135 | + uses: actions/setup-node@v4 |
| 136 | + with: |
| 137 | + node-version: 20 |
| 138 | + |
| 139 | + - name: Enable corepack |
| 140 | + run: | |
| 141 | + corepack enable |
| 142 | + corepack prepare yarn@stable --activate |
| 143 | +
|
| 144 | + - name: Activate cache for Node.js 20 |
| 145 | + uses: actions/setup-node@v4 |
| 146 | + with: |
| 147 | + cache: yarn |
| 148 | + |
| 149 | + - name: Install Dependencies |
| 150 | + run: yarn |
| 151 | + |
| 152 | + - name: Run lint checks |
| 153 | + run: yarn lint |
| 154 | + |
| 155 | + - name: Run format checks |
| 156 | + run: yarn format |
0 commit comments