Bump actions/download-artifact from 2.0.8 to 4.1.7 in /.github/workflows in the github_actions group across 1 directory #1
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
name: Checks | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, labeled, unlabeled] | |
env: | |
triggerLabelFull: "tests-requested: full" | |
triggerLabelQuick: "tests-requested: quick" | |
statusLabelInProgress: "tests: in-progress" | |
statusLabelFailed: "tests: failed" | |
jobs: | |
file_format_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install prerequisites | |
run: python scripts/gha/install_prereqs_desktop.py | |
- name: log clang format version | |
shell: bash | |
run: clang-format --version | |
- name: git fetch origin main | |
shell: bash | |
run: git fetch origin main | |
- name: Detect Formatting Changes | |
shell: bash | |
run: python3 scripts/format_code.py -git_diff -noformat_file -verbose -github_log | |
check_integration_test_labels: | |
# This check fails if integration tests are queued, in progress, or failed. | |
runs-on: ubuntu-latest | |
steps: | |
- uses: docker://agilepathway/pull-request-label-checker:latest | |
with: | |
none_of: "${{ env.statusLabelInProgress }},${{ env.statusLabelFailed }},${{ env.triggerLabelFull }},${{ env.triggerLabelQuick }}" | |
repo_token: ${{ github.token }} | |
generated_docs_check: | |
# This check succeeds if Doxygen documentation generates without errors. | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install prerequisites | |
run: python scripts/gha/install_prereqs_desktop.py | |
- name: Generate headers | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
cmake --build . --target FIREBASE_GENERATED_HEADERS | |
- name: Install doxygen | |
run: sudo apt-get install doxygen | |
- name: Run doxygen | |
run: | | |
cp docs/Doxyfile /tmp/Doxyfile | |
echo INPUT = $(find */src/include/firebase/ build/generated/ -name '*.h') >> /tmp/Doxyfile | |
doxygen /tmp/Doxyfile 2>doxygen_errors.txt | |
cat doxygen_errors.txt | |
- name: Check output | |
run: | | |
if grep -Eq "error:|warning:" doxygen_errors.txt; then | |
# Grep for warnings and print them out (replacing \n with %0A for github log) | |
grep -E "error:|warning:|^ parameter" doxygen_errors.txt | sed ':a;N;$!ba;s/\n/%0A/g' | sed 's/^/::error ::DOXYGEN ERRORS: %0A/' | |
exit 1 | |
fi | |
copyright_check: | |
# Check for Google copyright in each file. | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: false | |
- name: Run check_copyright.sh | |
run: | | |
set -e | |
bash scripts/gha/check_copyright.sh -g |