Allow configurable SPDX check exclusions #134
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow for GitHub Actions testing. | |
# | |
# Copyright 2015-2020, 2022 Russ Allbery <[email protected]> | |
# | |
# SPDX-License-Identifier: MIT | |
name: build | |
on: | |
push: | |
branches: | |
- "*" | |
tags: | |
- "release/*" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
AUTHOR_TESTING: 1 | |
C_TAP_VERBOSE: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install | |
run: sudo -E ci/install | |
- name: Get Perl version | |
id: get-perl | |
run: | | |
perl -e 'print "::set-output name=version::", $^V, "\n"' | |
- name: Cache Perl modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/perl5 | |
key: ${{ runner.os }}-perl-${{ steps.get-perl.outputs.version }}-${{ hashFiles('ci/cpanfile') }} | |
restore-keys: | | |
${{ runner.os }}-perl-${{ steps.get-perl.outputs.version }}- | |
- uses: perl-actions/install-with-cpanm@v1 | |
env: | |
PERL5LIB: ${{ env.HOME }}/perl5 | |
with: | |
args: "--local-lib=~/perl5 --with-suggests --notest" | |
cpanfile: ci/cpanfile | |
path: /usr/bin/cpanm | |
sudo: false | |
- name: test | |
run: ci/test |