![dependabot[bot]](/assets/img/avatar_default.png)
Bumps the github-actions-updates group with 10 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.1.1` | `4.2.2` | | [actions/setup-node](https://github.com/actions/setup-node) | `4.0.2` | `4.2.0` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.3.1` | `4.6.0` | | [actions/cache](https://github.com/actions/cache) | `4.0.2` | `4.2.0` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4.1.4` | `4.1.8` | | [EnricoMi/publish-unit-test-result-action](https://github.com/enricomi/publish-unit-test-result-action) | `2.3.0` | `2.18.0` | | [actions/setup-python](https://github.com/actions/setup-python) | `5.0.0` | `5.4.0` | | [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) | `1.7.0` | `4.1.0` | | [mattermost/action-mattermost-notify](https://github.com/mattermost/action-mattermost-notify) | `60f5da6e1796b033cf5a038b57031fa011962e27` | `d317daebed2a792679f68fd0248557a8d21d82b6` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.3.1` | `2.4.0` | Updates `actions/checkout` from 4.1.1 to 4.2.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](b4ffde65f4...11bd71901b
) Updates `actions/setup-node` from 4.0.2 to 4.2.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](60edb5dd54...1d0ff469b7
) Updates `actions/upload-artifact` from 4.3.1 to 4.6.0 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](5d5d22a312...65c4c4a1dd
) Updates `actions/cache` from 4.0.2 to 4.2.0 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](0c45773b62...1bd1e32a3b
) Updates `actions/download-artifact` from 4.1.4 to 4.1.8 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](c850b930e6...fa0a91b85d
) Updates `EnricoMi/publish-unit-test-result-action` from 2.3.0 to 2.18.0 - [Release notes](https://github.com/enricomi/publish-unit-test-result-action/releases) - [Commits](a3caf02865...170bf24d20
) Updates `actions/setup-python` from 5.0.0 to 5.4.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](0a5c615913...42375524e2
) Updates `aws-actions/configure-aws-credentials` from 1.7.0 to 4.1.0 - [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases) - [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md) - [Commits](67fbcbb121...ececac1a45
) Updates `mattermost/action-mattermost-notify` from 60f5da6e1796b033cf5a038b57031fa011962e27 to d317daebed2a792679f68fd0248557a8d21d82b6 - [Release notes](https://github.com/mattermost/action-mattermost-notify/releases) - [Commits](60f5da6e17...d317daebed
) Updates `ossf/scorecard-action` from 2.3.1 to 2.4.0 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](0864cf1902...62b2cac7ed
) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-updates - dependency-name: EnricoMi/publish-unit-test-result-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates - dependency-name: aws-actions/configure-aws-credentials dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-updates - dependency-name: mattermost/action-mattermost-notify dependency-type: direct:production dependency-group: github-actions-updates - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-updates ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
216 lines
8.2 KiB
YAML
216 lines
8.2 KiB
YAML
name: ci
|
|
on:
|
|
pull_request:
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
env:
|
|
TERM: xterm
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: ci/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- name: ci/setup-node
|
|
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
|
|
with:
|
|
node-version-file: "package.json"
|
|
cache: "npm"
|
|
cache-dependency-path: package-lock.json
|
|
- name: ci/install-dependencies
|
|
env:
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
run: |
|
|
wget -qO - https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_22.04/Release.key | sudo apt-key add -
|
|
wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.20.1/yq_linux_amd64 && chmod a+x /usr/local/bin/yq
|
|
sudo apt-get update || true && sudo apt-get install -y ca-certificates libxtst-dev libpng++-dev gcc-aarch64-linux-gnu g++-aarch64-linux-gnu jq icnsutils graphicsmagick tzdata
|
|
npm ci
|
|
- name: ci/test
|
|
uses: ./.github/actions/test
|
|
- name: ci/build
|
|
run: |
|
|
mkdir -p ./build/linux
|
|
npm run package:linux-tar
|
|
bash -x ./scripts/patch_updater_yml.sh
|
|
bash -x ./scripts/cp_artifacts.sh release ./build/linux
|
|
- name: ci/upload-test-results
|
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
with:
|
|
name: linux-test-results
|
|
path: test-results.xml
|
|
retention-days: 5
|
|
- name: ci/upload-build
|
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
with:
|
|
name: build-linux
|
|
path: ./build/linux
|
|
retention-days: 10 ## No need to keep CI builds more than 10 days
|
|
|
|
windows-install-deps:
|
|
runs-on: windows-2022
|
|
steps:
|
|
- name: ci/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- name: ci/setup-node
|
|
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
|
|
with:
|
|
node-version-file: "package.json"
|
|
cache: "npm"
|
|
cache-dependency-path: package-lock.json
|
|
- name: ci/cache-node-modules
|
|
id: cache-node-modules
|
|
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
|
with:
|
|
path: node_modules
|
|
key: ${{ runner.os }}-build-node-modules-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-build-node-modules
|
|
${{ runner.os }}-build-
|
|
${{ runner.os }}-
|
|
- name: ci/install-dependencies
|
|
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
|
env:
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
run: |
|
|
choco install yq --version 4.15.1 -y
|
|
npm i -g node-gyp
|
|
node-gyp install
|
|
node-gyp install --devdir="C:\Users\runneradmin\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers"
|
|
npm ci --openssl_fips=''
|
|
|
|
build-win-no-installer:
|
|
runs-on: windows-2022
|
|
needs:
|
|
- windows-install-deps
|
|
steps:
|
|
- name: ci/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- name: ci/setup-node
|
|
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
|
|
with:
|
|
node-version-file: "package.json"
|
|
cache: "npm"
|
|
cache-dependency-path: package-lock.json
|
|
- name: ci/cache-node-modules
|
|
id: cache-node-modules
|
|
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
|
with:
|
|
path: node_modules
|
|
key: ${{ runner.os }}-build-node-modules-${{ hashFiles('package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-build-node-modules
|
|
${{ runner.os }}-build-
|
|
${{ runner.os }}-
|
|
- name: ci/install-node-gyp
|
|
env:
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
run: |
|
|
choco install yq --version 4.15.1 -y
|
|
npm i -g node-gyp
|
|
node-gyp install
|
|
node-gyp install --devdir="C:\Users\runneradmin\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers"
|
|
node-gyp install --devdir="C:\Users\runneradmin\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers" --arch arm64
|
|
- name: ci/install-dependencies
|
|
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
|
env:
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
run: |
|
|
npm ci --openssl_fips=''
|
|
- name: ci/test
|
|
uses: ./.github/actions/test
|
|
- name: ci/build
|
|
run: |
|
|
mkdir -p ./build/win
|
|
npm run package:windows
|
|
bash -x ./scripts/patch_updater_yml.sh
|
|
bash -x ./scripts/cp_artifacts.sh release ./build/win
|
|
- name: ci/upload-test-results
|
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
with:
|
|
name: windows-test-results
|
|
path: test-results.xml
|
|
retention-days: 5
|
|
- name: ci/upload-build
|
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
with:
|
|
name: build-windows
|
|
path: ./build/win
|
|
retention-days: 10 ## No need to keep CI builds more than 10 days
|
|
|
|
build-mac-no-dmg:
|
|
runs-on: macos-15
|
|
steps:
|
|
- name: ci/checkout-repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- name: ci/setup-node
|
|
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
|
|
with:
|
|
node-version-file: "package.json"
|
|
cache: "npm"
|
|
cache-dependency-path: package-lock.json
|
|
- name: ci/install-dependencies
|
|
env:
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
run: |
|
|
brew install yq
|
|
jq '.mac.target=["zip"]' electron-builder.json | jq '.mac.gatekeeperAssess=false' > /tmp/electron-builder.json && cp /tmp/electron-builder.json .
|
|
sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
|
|
npm ci
|
|
- name: ci/test
|
|
uses: ./.github/actions/test
|
|
- name: ci/build
|
|
run: |
|
|
mkdir -p ./build/macos
|
|
npm run package:mac
|
|
bash -x ./scripts/patch_updater_yml.sh
|
|
bash -x ./scripts/cp_artifacts.sh release ./build/macos/
|
|
- name: ci/upload-test-results
|
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
with:
|
|
name: macos-test-results
|
|
path: test-results.xml
|
|
retention-days: 5
|
|
- name: ci/upload-build
|
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
with:
|
|
name: build-macos
|
|
path: ./build/macos/
|
|
retention-days: 10 ## No need to keep CI builds more than 10 days
|
|
|
|
report-test-results:
|
|
if: always()
|
|
needs:
|
|
- build-mac-no-dmg
|
|
- build-win-no-installer
|
|
- build-linux
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
checks: write
|
|
pull-requests: write
|
|
steps:
|
|
- name: ci/download-macos-test-results
|
|
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
with:
|
|
name: macos-test-results
|
|
path: macos-test-results
|
|
- name: ci/download-windows-test-results
|
|
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
with:
|
|
name: windows-test-results
|
|
path: windows-test-results
|
|
- name: ci/download-linux-test-results
|
|
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
with:
|
|
name: linux-test-results
|
|
path: linux-test-results
|
|
- name: ci/publish-results
|
|
uses: EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2.18.0
|
|
with:
|
|
comment_mode: failures
|
|
compare_to_earlier_commit: false
|
|
junit_files: "**/*.xml"
|