Repository navigation
56 lines (54 loc) · 1.59 KB
/
Copy pathmanual-test.yml
File metadata and controls
56 lines (54 loc) · 1.59 KB
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
name: 'Run test manually'
on:
workflow_dispatch:
inputs:
os:
description: 'OS to run test on'
required: true
type: choice
options:
- ubuntu-latest
- windows-latest
- macos-latest
- ubuntu-24.04-arm
container:
description: 'Container image to run test on'
required: false
type: string
chrome-version:
description: 'Chrome version to install'
required: false
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: 'package.json'
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build
test:
needs: [build]
runs-on: ${{ inputs.os }}
container: ${{ inputs.container }}
steps:
- uses: actions/checkout@v6
- name: Install chrome
uses: ./
with:
chrome-version: ${{ inputs.chrome-version }}
install-chromedriver: true
id: setup-chrome
- if: runner.os == 'Linux' || runner.os == 'macOS'
run: |
"${{ steps.setup-chrome.outputs.chrome-path }}" --version
"${{ steps.setup-chrome.outputs.chromedriver-path }}" --version
- if: runner.os == 'Windows'
run: |
(Get-Item (Get-Command "${{ steps.setup-chrome.outputs.chrome-path }}").Source).VersionInfo.ProductVersion
(Get-Item (Get-Command "${{ steps.setup-chrome.outputs.chromedriver-path }}").Source).VersionInfo.ProductVersion