Ensure that we install the required perl modules

next
Sayan Nandan 3 years ago
parent a276091726
commit 7b26488c38

@ -7,4 +7,5 @@ steps:
- name: test
image: rust
commands:
- apt update && apt-get install libhtml-parser-perl -y
- make test

@ -32,39 +32,15 @@ jobs:
chmod +x ci/buildvars.sh
ci/buildvars.sh
- name: Cache Cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ matrix.build }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ matrix.build }}-cargo-registry-
if: env.BUILD == 'true'
- name: Cache Cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ matrix.build }}-cargo-index-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ matrix.build }}-cargo-index-
if: env.BUILD == 'true'
- name: Cache Cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ matrix.build }}-target-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ matrix.build }}-target-
if: env.BUILD == 'true'
- name: Install Rust
run: |
rustup update ${{ matrix.rust }} --no-self-update
rustup default ${{ matrix.rust }}
if: env.BUILD == 'true'
- name: Install perl modules
uses: perl-actions/install-with-cpanm@v1
with:
install: "HTML::Entities"
- name: Run Tests
run: make test
env:

@ -51,7 +51,10 @@ jobs:
brew install gnu-tar
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
if: runner.os == 'macOS'
- name: Install perl modules
uses: perl-actions/install-with-cpanm@v1
with:
install: "HTML::Entities"
- name: Setup environment
run: |
chmod +x ci/setvars.sh
@ -145,6 +148,10 @@ jobs:
run: |
chmod +x ci/setvars.sh
ci/setvars.sh
- name: Install perl modules
uses: perl-actions/install-with-cpanm@v1
with:
install: "HTML::Entities"
- name: Cache Cargo registry
uses: actions/cache@v2
@ -218,6 +225,10 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Install perl modules
uses: perl-actions/install-with-cpanm@v1
with:
install: "HTML::Entities"
- name: Setup environment
run: |
@ -280,7 +291,7 @@ jobs:
fetch-depth: 2
- name: Set up tools
run: |
sudo apt update && sudo apt install awscli zip zstd perl -y
sudo apt update && sudo apt install awscli zip zstd perl libhtml-parser-perl -y
aws configure set aws_access_key_id ${{ secrets.STORAGE_ACCESS_KEY }}
aws configure set aws_secret_access_key ${{ secrets.STORAGE_ACCESS_SECRET }}
aws configure set default.s3.signature_version s3v4

Loading…
Cancel
Save