From a906ac167a3c362f27cfde6be153b9c0ada7ff04 Mon Sep 17 00:00:00 2001 From: Jimmy Bosse Date: Wed, 5 Feb 2025 08:24:59 -0500 Subject: [PATCH 1/2] Adding github actions --- .github/dependabot.yml | 7 ++++++ .github/workflows/dependabot-tickets.yml | 26 +++++++++++++++++++++ .github/workflows/run_tests.yml | 29 ++++++++++++++++++++++++ .gitignore | 3 ++- 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/dependabot-tickets.yml create mode 100644 .github/workflows/run_tests.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2a82d67 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: "mix" # See documentation for possible values + directory: "/" # Location of package manifests + open-pull-requests-limit: 5 + schedule: + interval: "daily" diff --git a/.github/workflows/dependabot-tickets.yml b/.github/workflows/dependabot-tickets.yml new file mode 100644 index 0000000..dedcd41 --- /dev/null +++ b/.github/workflows/dependabot-tickets.yml @@ -0,0 +1,26 @@ +name: Dependabot Tickets + +on: + pull_request: + branches: + - main + +jobs: + check-dependabot-pull-requests: + runs-on: ubuntu-latest + name: Check for Dependabot Pull Requests + steps: + - name: Step 1 + id: step_1 + uses: ARPC/dependabot-tickets@v0.2.2 + with: + fogbugz_api_url: ${{ secrets.FOGBUGZ_API_URL}} + fogbugz_token: ${{ secrets.FOGBUGZ_API_TOKEN }} + fogbugz_project: ${{ secrets.FOGBUGZ_PROJECT }} + fogbugz_category: ${{ secrets.FOGBUGZ_CATEGORY}} + planview_api_url: ${{ secrets.PLANVIEW_API_URL }} + planview_auth: ${{ secrets.PLANVIEW_AUTH }} + planview_board_id: ${{ secrets.PLANVIEW_BOARD_ID }} + planview_lane_id: ${{ secrets.PLANVIEW_LANE_ID }} + planview_type_id: ${{ secrets.PLANVIEW_TYPE_ID }} + users: "dependabot[bot]" diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml new file mode 100644 index 0000000..cbaaa82 --- /dev/null +++ b/.github/workflows/run_tests.yml @@ -0,0 +1,29 @@ +name: Run Tests + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + container: + image: elixir:1.17.3 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + mix local.rebar --force + mix local.hex --force + mix deps.get + + - name: Run Tests + env: + MIX_ENV: test + run: | + mix test diff --git a/.gitignore b/.gitignore index 2afd9c6..63ea20f 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,5 @@ erl_crash.dump assert_html-*.tar -.elixir_ls \ No newline at end of file +.elixir_ls +.DS_Store From 14f965c2e0a5e89b612af360cebb64d16c301d10 Mon Sep 17 00:00:00 2001 From: Jimmy Bosse Date: Wed, 5 Feb 2025 08:34:45 -0500 Subject: [PATCH 2/2] use org secret --- .github/workflows/dependabot-tickets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependabot-tickets.yml b/.github/workflows/dependabot-tickets.yml index dedcd41..d1243ee 100644 --- a/.github/workflows/dependabot-tickets.yml +++ b/.github/workflows/dependabot-tickets.yml @@ -19,7 +19,7 @@ jobs: fogbugz_project: ${{ secrets.FOGBUGZ_PROJECT }} fogbugz_category: ${{ secrets.FOGBUGZ_CATEGORY}} planview_api_url: ${{ secrets.PLANVIEW_API_URL }} - planview_auth: ${{ secrets.PLANVIEW_AUTH }} + planview_auth: ${{ secrets.LEANKIT_AUTH }} planview_board_id: ${{ secrets.PLANVIEW_BOARD_ID }} planview_lane_id: ${{ secrets.PLANVIEW_LANE_ID }} planview_type_id: ${{ secrets.PLANVIEW_TYPE_ID }}