Skip to content

fix: update GitHub Actions versions to fix Node.js deprecation warning #16

fix: update GitHub Actions versions to fix Node.js deprecation warning

fix: update GitHub Actions versions to fix Node.js deprecation warning #16

name: FuchiCorp Source Code Checks!
on:
workflow_dispatch:
push:
branches:
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
jobs:
required-pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
wget "https://releases.hashicorp.com/terraform/1.5.7/terraform_1.5.7_linux_amd64.zip"
unzip "terraform_1.5.7_linux_amd64.zip"
sudo mv terraform /usr/bin/terraform && chmod +x /usr/bin/terraform
shell: bash
- run: terraform init
shell: bash
- uses: actions/setup-python@v5
- run: python -m pip install pre-commit==2.17.0 shellcheck-py==0.8.0.3
shell: bash
- run: python -m pip freeze --local
shell: bash
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Commit and push minor fixes by pre-commit
run: |
pre-commit run --show-diff-on-failure --color=always --all-files
shell: bash
working-directory: ${{ github.workspace }}