-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow file (#2)
* Add GitHub Actions workflow file * Remove warning when Explorer is not available
- Loading branch information
Philip Sampaio
authored
Nov 11, 2024
1 parent
f528489
commit 223ac4d
Showing
2 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: "ReqCh CI" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
MIX_ENV: test | ||
|
||
jobs: | ||
test: | ||
services: | ||
clickhouse: | ||
image: clickhouse/clickhouse-server:24.10 | ||
ports: | ||
- "8123:8123" | ||
- "9000:9000" | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- otp_version: "25.3" | ||
elixir_version: "1.14" | ||
|
||
- otp_version: "27.1.2" | ||
elixir_version: "1.17" | ||
|
||
runs-on: ubuntu-latest | ||
name: test | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{ matrix.otp_version }} | ||
elixir-version: ${{ matrix.elixir_version }} | ||
|
||
- run: mix deps.get | ||
- run: mix deps.compile | ||
- name: Run tests | ||
run: mix test --warnings-as-errors | ||
|
||
- name: Compile once again but without optional deps | ||
run: mix compile --force --warnings-as-errors --no-optional-deps | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
name: mix format | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: "27.1.2" | ||
elixir-version: "1.17" | ||
- run: mix format --check-formatted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters