Skip to content

Commit

Permalink
chore(ci): Add manual-trigger test
Browse files Browse the repository at this point in the history
  • Loading branch information
ueokande committed Dec 2, 2023
1 parent f67fd28 commit 1fded6c
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/manual-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 'Run test manually'
on:
workflow_dispatch:
inputs:
os:
description: 'OS to run test on'
required: true
type: choice
options:
- ubuntu
- windows
- macos
chrome-version:
description: 'Chrome version to install'
required: false
type: string

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm build
- run: pnpm package
- uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist/

test:
needs: [build]
runs-on: ${{ inputs.os }}-latest
steps:
- uses: actions/download-artifact@v3
with:
name: dist
- name: Install chrome
uses: ./
with:
chrome-version: ${{ inputs.chrome-version }}
id: setup-chrome
- if: runner.os == 'Linux' || runner.os == 'macOS'
run: ${{ steps.setup-chrome.outputs.chrome-path }} --version
- if: runner.os == 'Windows'
run: (Get-Item (Get-Command ${{ steps.setup-chrome.outputs.chrome-path }}).Source).VersionInfo.ProductVersion

0 comments on commit 1fded6c

Please sign in to comment.