Skip to content

Commit

Permalink
try to run as matrix job
Browse files Browse the repository at this point in the history
  • Loading branch information
toddtarsi committed Dec 8, 2023
1 parent f09c103 commit ca052c9
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 100 deletions.
42 changes: 28 additions & 14 deletions .github/workflows/release-ide.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
name: 'Release IDE to GitHub'

on:
push:
branches: [trunk]

jobs:
release:
name: Release IDE to GitHub for ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
platform: linux
- os: windows-latest
platform: windows
- os: macos-latest
platform: mac

permissions:
actions: read
checks: read
Expand All @@ -19,13 +29,12 @@ jobs:
repository-projects: read
security-events: read
statuses: read
runs-on: macos-11
if: github.repository == 'seleniumhq/selenium-ide'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
run: npm i -g pnpm
Expand All @@ -39,26 +48,31 @@ jobs:
env:
NODE_ENV: "production"
- name: Build selenium-ide binaries
run: pnpm run build:electron
run: pnpm run build:electron:${{ matrix.platform }}
- name: Set env from current release
run: >
echo "SIDE_RELEASE_VERSION=$(node -pe "require('./package.json').version")" >> $GITHUB_ENV
working-directory: ./packages/selenium-ide
- name: Check env is there
run: echo "${{ env.SIDE_RELEASE_VERSION }}"
- name: Release latest selenium-ide on github
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Nightly (Unstable)"
files: packages/selenium-ide/dist/Selenium*
- name: Release selenium-ide on github
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ env.SIDE_RELEASE_VERSION }}"
prerelease: false
files: packages/selenium-ide/dist/Selenium*
continue-on-error: true
- name: Upload binaries to release for ${{ matrix.platform }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: packages/selenium-ide/dist/Selenium*
file_glob: true
tag: ${{ github.ref }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: packages/selenium-ide/dist/Selenium*
file_glob: true
tag: ${{ github.ref }}
15 changes: 9 additions & 6 deletions packages/selenium-ide/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@seleniumhq/selenium-ide",
"version": "4.0.0-alpha.59",
"version": "4.0.0-alpha.60",
"private": true,
"description": "Selenium IDE electron app",
"author": "Todd <[email protected]>",
Expand All @@ -11,8 +11,10 @@
"start": "electron build/main-bundle.js",
"build": "run-s build:webpack build:electron",
"build:electron": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -mwl -c.electronVersion $(node -e \"console.log(require('electron/package.json').version)\") --publish never",
"build:electron:linux": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -l -c.electronVersion $(node -e \"console.log(require('electron/package.json').version)\") --publish never",
"build:electron:macos": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -m -c.electronVersion $(node -e \"console.log(require('electron/package.json').version)\") --publish never",
"build:electron:windows": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder -w -c.electronVersion $(node -e \"console.log(require('electron/package.json').version)\") --publish never",
"build:electron:dir": "CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --dir",
"build:electron:windows": "node_modules\\.bin\\electron-builder",
"build:webpack": "webpack",
"watch": "webpack --watch"
},
Expand All @@ -26,7 +28,7 @@
"url": "https://github.com/SeleniumHQ/selenium-ide/issues"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"build": {
"appId": "org.seleniumhq.selenium-ide",
Expand Down Expand Up @@ -75,7 +77,7 @@
"linux": {
"target": "AppImage"
},
"nodeVersion": "16.x",
"nodeVersion": "18.x",
"fileAssociations": [
{
"ext": "side",
Expand Down Expand Up @@ -105,7 +107,7 @@
"@seleniumhq/code-export-python-pytest": "^4.0.0-alpha.2",
"@seleniumhq/code-export-ruby-rspec": "^4.0.0-alpha.1",
"@seleniumhq/get-driver": "^4.0.0-alpha.1",
"@seleniumhq/side-api": "^4.0.0-alpha.37",
"@seleniumhq/side-api": "^4.0.0-alpha.38",
"@seleniumhq/side-model": "^4.0.0-alpha.4",
"@seleniumhq/side-runtime": "^4.0.0-alpha.31",
"dnd-core": "^16.0.1",
Expand All @@ -119,6 +121,7 @@
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.2.0",
"selenium-webdriver": "^4.15.0",
"side-code-export": "^4.0.0-alpha.11",
"v8-compile-cache": "^2.3.0"
},
Expand All @@ -131,6 +134,7 @@
"@types/lodash": "^4.14.199",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@types/selenium-webdriver": "^4.1.21",
"@types/webpack-env": "^1.16.0",
"copy-webpack-plugin": "^10.2.4",
"css-loader": "^6.8.1",
Expand All @@ -143,7 +147,6 @@
"npm-run-all": "^4.1.5",
"run-script-os": "^1.1.6",
"scroll-into-view-if-needed": "^3.0.10",
"selenium-webdriver": "^4.14.0",
"source-map-loader": "^4.0.1",
"source-map-support": "^0.5.21",
"style-loader": "^3.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/side-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@seleniumhq/side-api",
"version": "4.0.0-alpha.37",
"version": "4.0.0-alpha.38",
"private": false,
"description": "Selenium IDE API command shapes and such",
"author": "Todd Tarsi <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions packages/side-example-suite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@seleniumhq/side-example-suite",
"version": "4.0.0-alpha.5",
"version": "4.0.0-alpha.6",
"private": true,
"description": "Selenium IDE example suite, with tests, plugin, and export format",
"author": "Todd <[email protected]>",
Expand All @@ -21,7 +21,7 @@
"@seleniumhq/code-export-python-pytest": "4.0.0-alpha.2"
},
"devDependencies": {
"@seleniumhq/side-api": "^4.0.0-alpha.37"
"@seleniumhq/side-api": "^4.0.0-alpha.38"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/side-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"dependencies": {
"@seleniumhq/side-commons": "^4.0.0-alpha.1",
"@seleniumhq/side-model": "^4.0.0-alpha.4",
"@types/selenium-webdriver": "^4.1.15",
"selenium-webdriver": "^4.11.1"
"@types/selenium-webdriver": "^4.1.21",
"selenium-webdriver": "^4.15.0"
},
"gitHead": "507c7c802f34196e6ee4800bf5c0b36553d41369"
}
4 changes: 2 additions & 2 deletions packages/webdriver-testkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
"devDependencies": {
"@types/fs-extra": "^8.0.1",
"@types/selenium-webdriver": "^4.1.15",
"selenium-webdriver": "^4.11.1"
"@types/selenium-webdriver": "^4.1.21",
"selenium-webdriver": "^4.15.0"
},
"dependencies": {
"@seleniumhq/browser-info": "^4.0.0-alpha.1",
Expand Down
Loading

0 comments on commit ca052c9

Please sign in to comment.