Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump apps version in GitHub CI #166

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kianmeng
Copy link
Contributor

List of changes:

  • bump actions/checkout to v4
  • remove unused deps
  • support Erlang/OTP 26.x and Elixir 1.15.x
  • update docker command to work with podman
  • use default naming of jobs to show lint flag

List of changes:
- bump actions/checkout to v4
- remove unused deps
- support Erlang/OTP 26.x and Elixir 1.15.x
- update docker command to work with podman
- use default naming of jobs to show `lint` flag
@@ -17,7 +17,7 @@ Make sure the tests pass.

Running tests for Dataloader requires a running instance of Postgres. The easiest way to do this is to run Postgres inside of Docker whilst running the Dataloader tests. In one terminal run:

docker run -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=dataloader_test postgres
docker run -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=dataloader_test docker.io/postgres
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ docker run -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=dataloader_test postgres
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: short-name "postgres" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"

@@ -394,13 +394,13 @@ defmodule Dataloader do
# Optionally use `async/1` and `async_stream/3` functions from
# `opentelemetry_process_propagator` if available
if Code.ensure_loaded?(OpentelemetryProcessPropagator.Task) do
@spec async((() -> any)) :: Task.t()
@spec async((-> any)) :: Task.t()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run mix format --check-formatted
** (Mix) mix format failed due to --check-formatted.
The following files are not formatted:

/home/runner/work/dataloader/dataloader/lib/dataloader.ex

@@ -8,7 +8,7 @@ defmodule Dataloader.Mixfile do
[
app: :dataloader,
version: @version,
elixir: "~> 1.12",
elixir: "~> 1.11",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now, the minimum supported Elixir version with security patches is 1.11, see https://hexdocs.pm/elixir/1.15.7/compatibility-and-deprecations.html


- name: Check unused deps
run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run mix deps.unlock --check-unused
** (Mix) Unused dependencies in mix.lock file:

  * :connection

Error: Process completed with exit code 1.

@@ -8,8 +8,7 @@ on:

jobs:
test:
name: Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

We want to show the lint flag in job name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant