Skip to content

Commit

Permalink
chore(ci): matrix versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ueokande committed Dec 3, 2023
1 parent f4d3455 commit 87223b6
Showing 1 changed file with 9 additions and 30 deletions.
39 changes: 9 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,42 +31,21 @@ jobs:
strategy:
matrix:
os: [ubuntu, macos, windows]
version: ["", 827102, 120, dev]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/download-artifact@v3
with:
name: dist

- name: Install with no params
uses: ./
- if: runner.os == 'Linux'
run: chrome --version
- if: runner.os == 'macOS'
run: chromium --version
- if: runner.os == 'Windows'
run: (Get-Item (Get-Command chrome).Source).VersionInfo.ProductVersion
# Unable to run with command-line option on windows

- name: Install with version '827102'
uses: ./
with:
chrome-version: 827102
- if: runner.os == 'Linux'
run: chrome --version
- if: runner.os == 'macOS'
run: chromium --version
- if: runner.os == 'Windows'
run: (Get-Item (Get-Command chrome).Source).VersionInfo.ProductVersion
# Unable to run with command-line option on windows

- name: install with version 'dev'
- name: Install with commit position '827102'
uses: ./
with:
chrome-version: dev
- if: runner.os == 'Linux'
run: chrome --version
- if: runner.os == 'macOS'
run: chrome --version
chrome-version: ${{ matrix.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 chrome).Source).VersionInfo.ProductVersion
# Unable to run with command-line option on windows
run: |
(Get-Item (Get-Command "${{ steps.setup-chrome.outputs.chrome-path }}").Source).VersionInfo.ProductVersion

0 comments on commit 87223b6

Please sign in to comment.