This repository has been archived by the owner on Nov 21, 2023. It is now read-only.
Add note about archival to README #190
Workflow file for this run
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
# Copyright (c) 2022 Gabriel Feo | |
# | |
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | |
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | |
name: 'Verify PR' | |
on: | |
pull_request | |
jobs: | |
check-license-headers: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run license-eye | |
uses: apache/[email protected] | |
check-build: | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
matrix: | |
runner: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Check for modified code | |
id: diff | |
uses: tj-actions/changed-files@v35 | |
with: | |
files: | | |
**/src/** | |
**/*.gradle* | |
./gradle/* | |
- name: Run 'check' tasks | |
if: ${{ steps.diff.outputs.all_modified_files }} | |
uses: ./.github/actions/build | |
with: | |
tasks: 'check' | |
artifact-name: 'Test reports (${{matrix.runner}})' | |
path-to-upload: '**/build/reports/tests/**' | |
check-shell-scripts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Check for modified scripts | |
id: diff | |
uses: tj-actions/changed-files@v35 | |
with: | |
files: '**/*.sh' | |
- name: shellcheck | |
if: ${{ steps.diff.outputs.all_modified_files }} | |
uses: docker://koalaman/shellcheck:latest | |
with: | |
args: ${{ steps.diff.outputs.all_modified_files }} |