Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails GitHub操作安装pdftk_Ruby On Rails_Ruby_Github_Github Actions_Pdftk - Fatal编程技术网

Ruby on rails GitHub操作安装pdftk

Ruby on rails GitHub操作安装pdftk,ruby-on-rails,ruby,github,github-actions,pdftk,Ruby On Rails,Ruby,Github,Github Actions,Pdftk,我正在尝试为Github操作工作流安装pdftk。但它似乎不起作用。您知道如何为Github操作设置PDFTK吗 Github操作工作流: on: push: branches: [setup_github] pull_request: branches: [setup_github] jobs: test: runs-on: ubuntu-18.04 services: postgres: image: postgres:

我正在尝试为Github操作工作流安装pdftk。但它似乎不起作用。您知道如何为Github操作设置PDFTK

Github操作工作流:

on:
  push:
    branches: [setup_github]
  pull_request:
    branches: [setup_github]
jobs:
  test:
    runs-on: ubuntu-18.04
    services:
      postgres:
        image: postgres:10
        ports: ['5432:5432']
    steps:
    - name: Checkout
      uses: actions/checkout@v1
    - name: Set up ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version:  2.5.3
    - uses: borales/actions-yarn@v2.0.2
      with:
        cmd: install
    - name: Set up JDK
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Install dependencies
      run: |
        sudo apt-get -yqq install libpq-dev
        sudo snap install pdftk
        sudo ln -fs /snap/pdftk/current/usr/bin/pdftk /usr/bin/pdftk
        wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb

我在代码中使用以下命令检查pdf文件。由于pdftk,测试失败

cmd=“pdftk{input_file_path}dump_data output 2>&1>/dev/null”


我使用的是RubyonRails(2.5.3)
Rspecs

运行操作时,命令或错误的确切结果是什么?这里的问题相同。错误消息“Package'pdftk'没有安装候选程序”运行操作时,命令或错误的确切结果是什么?此处的问题相同。错误消息“包'pdftk'没有安装候选程序”