diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..18dc355 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +--- +# Basic dependabot.yml file +# REF: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-actions-up-to-date-with-dependabot + +version: 2 +updates: + # Enable version updates for GitHub Actions + - package-ecosystem: "github-actions" + # Look for `.github/workflows` in the `root` directory + directory: "/" + # Check for updates once a week + schedule: + interval: "weekly" diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..ac67764 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,14 @@ +--- +name: lint +on: + push: + + +jobs: + pg-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: sudo apt update && sudo apt install pgformatter + - run: pg_format -i ./**/*.sql + - run: '[[ -z $(git status -s) ]]'