File: run-tests.yml

package info (click to toggle)
shutter 0.99.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,880 kB
  • sloc: perl: 19,514; sh: 204; makefile: 52; xml: 40
file content (38 lines) | stat: -rw-r--r-- 1,582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  workflow_dispatch:

jobs:
  run-tests:
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      - uses: actions/checkout@v4
      
      - name: Install deps
        run: |
          sudo apt update
          sudo apt install cpanminus gir1.2-ayatanaappindicator3-0.1 gir1.2-wnck-3.0 imagemagick \
          libcarp-always-perl libfile-basedir-perl libfile-copy-recursive-perl libfile-which-perl \
          libglib-object-introspection-perl libglib-perl libgoocanvas2-perl libgoocanvas-2.0-dev \
          libgtk3-perl libimage-exiftool-perl libimage-magick-perl \
          libjson-maybexs-perl libjson-perl liblocale-gettext-perl liblwp-protocol-https-perl \
          libnet-dbus-perl libnet-dbus-glib-perl libnet-oauth-perl libnumber-bytes-human-perl \
          libpango-perl libpath-class-perl libproc-processtable-perl libproc-simple-perl \
          libreadonly-perl librsvg2-common libsort-naturally-perl libwww-mechanize-perl libwww-perl \
          libx11-protocol-other-perl libx11-protocol-perl libxml-simple-perl procps xdg-utils
            
          sudo cpanm --installdeps --notest .
          sudo cpanm --sudo --notest Gtk3::ImageView
          sudo cpanm --sudo --notest GooCanvas2::CairoTypes
          
      - name: Run tests
        env:
          TEST_APP_SHUTTER_PATH: ${{ env.GITHUB_WORKSPACE }}
        run: xvfb-run --auto-servernum prove -I share/shutter/resources/modules/ -I t/lib t -r