Skip to content

chore(deps-dev): bump electron from 15.5.5 to 22.3.25 #256

chore(deps-dev): bump electron from 15.5.5 to 22.3.25

chore(deps-dev): bump electron from 15.5.5 to 22.3.25 #256

name: Electorrent Release
on:
push:
branches:
- master
pull_request:
env:
NODE_VERSION: 14.x
ELECTRON_IS_DEV: 0
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testspec: [qbittorrent, rtorrent, transmission, deluge, utorrent]
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install xvfb
- name: Install nodejs
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Cache npm modules
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Cache bower modules
uses: actions/cache@v2
with:
path: bower.json
key: ${{ runner.os }}-${{ hashFiles('bower.json') }}
- name: Install npm dependencies
run: npm install
- name: Build web application
run: npm run build
- name: Run e2e tests
timeout-minutes: 10
run: xvfb-run -a -- npm test -- -g ${{ matrix.testspec }}
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install apt packages
run: sudo apt-get update && sudo apt-get install -y graphicsmagick icnsutils
if: runner.os == 'Linux'
- name: Checkout source code
uses: actions/checkout@v2
- name: Install nodejs
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Cache npm modules
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install npm dependencies
run: npm install
- name: Build distribution
run: npm run dist
if: github.ref != 'refs/heads/master'
- name: Release artifacts
run: npm run release
if: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_ACCESS_TOKEN }}