Skip to content

Commit

Permalink
feat: Bump action versions and add rpmlint action
Browse files Browse the repository at this point in the history
  • Loading branch information
dusansimic committed Mar 3, 2024
1 parent 8335098 commit 2ed339d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,16 @@ jobs:
- ubuntu-latest
- windows-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install Snapcraft
# TODO: Bump after we're sure it works with samuelmeuli/action-electron-builder@v1
uses: samuelmeuli/action-snapcraft@v1
if: startsWith(matrix.os, 'ubuntu')

- name: Build & publish Caprine
# TODO: Upgrade action in fork https://github.com/dusansimic/action-electron-builder
uses: samuelmeuli/action-electron-builder@v1
Expand All @@ -40,7 +36,6 @@ jobs:
mac_certs_password: ${{ secrets.CSC_KEY_PASSWORD }}
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.snapcraft_token }}

- name: Upload to Gemfury
if: startsWith(matrix.os, 'ubuntu')
run: curl -F package=@$(find . -type f -name "*.deb") https://${{ secrets.gemfury_token }}@push.fury.io/lefterisgar/
17 changes: 12 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
name: Tests

on:
push:
branches-ignore:
- gh-pages
pull_request:
workflow_call:

jobs:
tests:
source:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Run tests
run: |
npm ci
npm test
rpmspec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint rpm spec file
uses: EyeCantCU/[email protected]
with:
rpmfiles: packages/rpm/caprine.spec
4 changes: 2 additions & 2 deletions packages/rpm/caprine.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ URL: https://sindresorhus.com/caprine/
Source0: https://github.com/sindresorhus/caprine/archive/refs/tags/v%{version}.tar.gz
Source1: %{name}.desktop

BuildArch: x86_64
ExclusiveArch: x86_64
BuildRequires: npm
BuildRequires: nodejs >= 18.0.0
BuildRequires: nodejs >= 20.0.0

%description
Caprine is an unofficial and privacy-focused Facebook Messenger app with many useful features.
Expand Down

0 comments on commit 2ed339d

Please sign in to comment.