|
5 | 5 | paths-ignore: |
6 | 6 | - development/generate_api/example_codes.rb |
7 | 7 | - development/unimplemented_examples.md |
8 | | - - 'documentation/**' |
| 8 | + - "documentation/**" |
9 | 9 | - spec/integration/example_spec.rb |
10 | 10 |
|
11 | 11 | jobs: |
12 | 12 | unit_test: |
13 | 13 | name: Unit test |
14 | 14 | runs-on: ubuntu-latest |
15 | 15 | steps: |
16 | | - - uses: actions/checkout@v3 |
17 | | - - uses: ruby/setup-ruby@v1 |
18 | | - with: |
19 | | - ruby-version: 3.2 |
20 | | - bundler-cache: true |
21 | | - - run: | |
22 | | - rm -rf spec/integration |
23 | | - bundle exec rspec |
| 16 | + - uses: actions/checkout@v3 |
| 17 | + - uses: ruby/setup-ruby@v1 |
| 18 | + with: |
| 19 | + ruby-version: 3.4 |
| 20 | + bundler-cache: true |
| 21 | + - run: | |
| 22 | + rm -rf spec/integration |
| 23 | + bundle exec rspec |
24 | 24 |
|
25 | 25 | generate_playwright_api: |
26 | 26 | name: Generate Playwright API codes |
27 | 27 | runs-on: ubuntu-latest |
28 | 28 | steps: |
29 | | - - uses: actions/checkout@v3 |
30 | | - - uses: ruby/setup-ruby@v1 |
31 | | - with: |
32 | | - ruby-version: 3.2 |
33 | | - bundler-cache: true |
34 | | - - run: bundle exec ruby development/generate_api.rb |
35 | | - - uses: actions/upload-artifact@v3 |
36 | | - with: |
37 | | - name: playwright_api |
38 | | - path: lib/playwright_api |
| 29 | + - uses: actions/checkout@v3 |
| 30 | + - uses: ruby/setup-ruby@v1 |
| 31 | + with: |
| 32 | + ruby-version: 3.4 |
| 33 | + bundler-cache: true |
| 34 | + - run: bundle exec ruby development/generate_api.rb |
| 35 | + - uses: actions/upload-artifact@v4 |
| 36 | + with: |
| 37 | + name: playwright_api |
| 38 | + path: lib/playwright_api |
39 | 39 |
|
40 | 40 | integration_test_with_npm_playwright_driver: |
41 | 41 | needs: [unit_test, generate_playwright_api] |
42 | 42 | strategy: |
43 | 43 | fail-fast: false |
44 | 44 | matrix: |
45 | | - ruby_version: [2.7, 3.0, 3.1, 3.2] |
| 45 | + ruby_version: [2.7, 3.1, 3.2, 3.3, 3.4] |
46 | 46 | browser: [chromium, webkit] |
47 | 47 | name: (${{ matrix.browser }}/Ruby${{ matrix.ruby_version }}) Integration test |
48 | 48 | runs-on: ubuntu-latest |
49 | 49 | steps: |
50 | | - - uses: actions/checkout@v3 |
51 | | - - uses: ruby/setup-ruby@v1 |
52 | | - with: |
53 | | - ruby-version: ${{ matrix.ruby_version }} |
54 | | - bundler-cache: true |
55 | | - - uses: actions/setup-node@v3 |
56 | | - with: |
57 | | - node-version: 16 |
58 | | - - name: setup ${{ matrix.version }} playwright via npm install |
59 | | - run: | |
60 | | - export PLAYWRIGHT_CLI_VERSION=$(bundle exec ruby -e 'puts Playwright::COMPATIBLE_PLAYWRIGHT_VERSION.strip') |
61 | | - npm install playwright@${PLAYWRIGHT_CLI_VERSION} || npm install playwright@next |
62 | | - ./node_modules/.bin/playwright install ${{ matrix.browser }} |
63 | | - ./node_modules/.bin/playwright install-deps |
64 | | - - name: Download playwright_api codes |
65 | | - uses: actions/download-artifact@v3 |
66 | | - with: |
67 | | - name: playwright_api |
68 | | - path: lib/playwright_api |
69 | | - - run: bundle exec rspec spec/integration --profile 10 |
70 | | - env: |
71 | | - BROWSER: ${{ matrix.browser }} |
72 | | - PLAYWRIGHT_CLI_EXECUTABLE_PATH: ./node_modules/.bin/playwright |
73 | | - timeout-minutes: 25 |
| 50 | + - uses: actions/checkout@v3 |
| 51 | + - uses: ruby/setup-ruby@v1 |
| 52 | + with: |
| 53 | + ruby-version: ${{ matrix.ruby_version }} |
| 54 | + bundler-cache: true |
| 55 | + - uses: actions/setup-node@v3 |
| 56 | + with: |
| 57 | + node-version: 22 |
| 58 | + - name: setup ${{ matrix.version }} playwright via npm install |
| 59 | + run: | |
| 60 | + export PLAYWRIGHT_CLI_VERSION=$(bundle exec ruby -e 'puts Playwright::COMPATIBLE_PLAYWRIGHT_VERSION.strip') |
| 61 | + npm install playwright@${PLAYWRIGHT_CLI_VERSION} || npm install playwright@next |
| 62 | + ./node_modules/.bin/playwright install ${{ matrix.browser }} |
| 63 | + ./node_modules/.bin/playwright install-deps |
| 64 | + sudo apt-get install -y ffmpeg |
| 65 | + - name: Download playwright_api codes |
| 66 | + uses: actions/download-artifact@v4 |
| 67 | + with: |
| 68 | + name: playwright_api |
| 69 | + path: lib/playwright_api |
| 70 | + - run: bundle exec rspec spec/integration --profile 10 |
| 71 | + env: |
| 72 | + BROWSER: ${{ matrix.browser }} |
| 73 | + PLAYWRIGHT_CLI_EXECUTABLE_PATH: ./node_modules/.bin/playwright |
| 74 | + timeout-minutes: 25 |
74 | 75 |
|
75 | 76 | integration_test_with_npm_playwright_driver_and_old_ruby: |
76 | 77 | needs: [unit_test, generate_playwright_api] |
77 | 78 | strategy: |
78 | 79 | fail-fast: false |
79 | 80 | matrix: |
80 | | - ruby_version: [2.4, 2.5, 2.6] |
| 81 | + ruby_version: [2.4, 2.5, 2.6, 3.0] |
81 | 82 | name: (chromium/Ruby${{ matrix.ruby_version }}) example_spec |
82 | 83 | runs-on: ubuntu-latest |
83 | 84 | steps: |
84 | | - - uses: actions/checkout@v3 |
85 | | - - uses: ruby/setup-ruby@v1 |
86 | | - with: |
87 | | - ruby-version: ${{ matrix.ruby_version }} |
88 | | - bundler-cache: true |
89 | | - - uses: actions/setup-node@v3 |
90 | | - with: |
91 | | - node-version: 16 |
92 | | - - name: setup ${{ matrix.version }} playwright via npm install |
93 | | - run: | |
94 | | - export PLAYWRIGHT_CLI_VERSION=$(bundle exec ruby -e 'puts Playwright::COMPATIBLE_PLAYWRIGHT_VERSION.strip') |
95 | | - npm install playwright@${PLAYWRIGHT_CLI_VERSION} || npm install playwright@next |
96 | | - ./node_modules/.bin/playwright install chromium |
97 | | - ./node_modules/.bin/playwright install-deps |
98 | | - - name: Download playwright_api codes |
99 | | - uses: actions/download-artifact@v3 |
100 | | - with: |
101 | | - name: playwright_api |
102 | | - path: lib/playwright_api |
103 | | - - run: bundle exec rspec spec/integration/example_spec.rb |
104 | | - env: |
105 | | - BROWSER: chromium |
106 | | - PLAYWRIGHT_CLI_EXECUTABLE_PATH: ./node_modules/.bin/playwright |
107 | | - timeout-minutes: 10 |
| 85 | + - uses: actions/checkout@v3 |
| 86 | + - uses: ruby/setup-ruby@v1 |
| 87 | + with: |
| 88 | + ruby-version: ${{ matrix.ruby_version }} |
| 89 | + bundler-cache: true |
| 90 | + - uses: actions/setup-node@v3 |
| 91 | + with: |
| 92 | + node-version: 22 |
| 93 | + - name: setup ${{ matrix.version }} playwright via npm install |
| 94 | + run: | |
| 95 | + export PLAYWRIGHT_CLI_VERSION=$(bundle exec ruby -e 'puts Playwright::COMPATIBLE_PLAYWRIGHT_VERSION.strip') |
| 96 | + npm install playwright@${PLAYWRIGHT_CLI_VERSION} || npm install playwright@next |
| 97 | + ./node_modules/.bin/playwright install chromium |
| 98 | + ./node_modules/.bin/playwright install-deps |
| 99 | + - name: Download playwright_api codes |
| 100 | + uses: actions/download-artifact@v4 |
| 101 | + with: |
| 102 | + name: playwright_api |
| 103 | + path: lib/playwright_api |
| 104 | + - run: bundle exec rspec spec/integration/example_spec.rb |
| 105 | + env: |
| 106 | + BROWSER: chromium |
| 107 | + PLAYWRIGHT_CLI_EXECUTABLE_PATH: ./node_modules/.bin/playwright |
| 108 | + timeout-minutes: 10 |
0 commit comments