From c1ee65675e4eb9fa43cb5a6f67a6c7b97892f1d6 Mon Sep 17 00:00:00 2001 From: Julian Trommer Date: Mon, 22 Jul 2024 09:40:28 +0200 Subject: [PATCH] Added actions for formatting & compat --- .github/dependabot.yml | 9 +++++++++ .github/workflows/Formatter.yml | 24 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/Formatter.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..47098b0 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + labels: + - "dependencies" + - "github-actions" \ No newline at end of file diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml new file mode 100644 index 0000000..16376b5 --- /dev/null +++ b/.github/workflows/Formatter.yml @@ -0,0 +1,24 @@ +name: Formatter + +on: + pull_request: + push: + branches: + - 'main' + tags: '*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: "Check out repository" + uses: actions/checkout@v4 + + - name: "Set up Julia" + uses: julia-actions/setup-julia@v1 + with: + version: '1.10' + arch: x64 + + - name: Install JuliaFormatter and format + run: julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter")); using JuliaFormatter; format(".", verbose=true)'