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..d1243ee --- /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.LEANKIT_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