Skip to content

Commit 0d8cb1f

Browse files
committed
delete comments
1 parent 107070a commit 0d8cb1f

File tree

1 file changed

+6
-37
lines changed

1 file changed

+6
-37
lines changed

.github/workflows/elixir.yml

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
name: Elixir CI
22

3-
# Define workflow that runs when changes are pushed to the
4-
# `main` branch or pushed to a PR branch that targets the `main`
5-
# branch. Change the branch name if your project uses a
6-
# different name for the main branch like "master" or "production".
73
on:
84
push:
9-
branches: ["main"] # adapt branch for project
5+
branches: ["main"]
106
pull_request:
11-
branches: ["main"] # adapt branch for project
7+
branches: ["main"]
128

13-
# Sets the environment variables for running tests
149
env:
1510
MIX_ENV: test
1611
TEST_DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/postgres"
@@ -20,9 +15,6 @@ permissions:
2015

2116
jobs:
2217
test:
23-
# Set up a Postgres DB service. By default, Phoenix applications
24-
# use Postgres. This creates a database for running tests.
25-
# Additional services can be defined here if required.
2618
services:
2719
db:
2820
image: postgres:12
@@ -38,24 +30,19 @@ jobs:
3830
runs-on: ubuntu-latest
3931
name: Test on OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
4032
strategy:
41-
# Specify the OTP and Elixir versions to use when building
42-
# and running the workflow steps.
4333
matrix:
44-
otp: ["27.2"] # Define the OTP version [required]
45-
elixir: ["1.18.1"] # Define the elixir version [required]
34+
otp: ["27.2"]
35+
elixir: ["1.18.1"]
4636
steps:
47-
# Step: Setup Elixir + Erlang image as the base.
4837
- name: Set up Elixir
4938
uses: erlef/setup-beam@v1
5039
with:
5140
otp-version: ${{matrix.otp}}
5241
elixir-version: ${{matrix.elixir}}
5342

54-
# Step: Check out the code.
5543
- name: Checkout code
5644
uses: actions/checkout@v3
5745

58-
# Step: Define how to cache deps. Restores existing cache if present.
5946
- name: Cache deps
6047
id: cache-deps
6148
uses: actions/cache@v3
@@ -67,9 +54,6 @@ jobs:
6754
restore-keys: |
6855
${{ runner.os }}-mix-${{ env.cache-name }}-
6956
70-
# Step: Define how to cache the `_build` directory. After the first run,
71-
# this speeds up tests runs a lot. This includes not re-compiling our
72-
# project's downloaded deps every run.
7357
- name: Cache compiled build
7458
id: cache-build
7559
uses: actions/cache@v3
@@ -82,17 +66,12 @@ jobs:
8266
${{ runner.os }}-mix-${{ env.cache-name }}-
8367
${{ runner.os }}-mix-
8468
85-
# Step: Download project dependencies. If unchanged, uses
86-
# the cached version.
8769
- name: Install dependencies
8870
run: mix deps.get
8971

90-
# Step: Compile the project treating any warnings as errors.
91-
# Customize this step if a different behavior is desired.
92-
- name: Compiles without warnings
72+
- name: Compile without warnings
9373
run: mix compile --warnings-as-errors
9474

95-
# Step: Restore PLT cache. Cache key based on Erlang/Elixir version and the mix.lock hash
9675
- name: Restore PLT cache
9776
id: plt_cache
9877
uses: actions/cache/restore@v3
@@ -104,12 +83,10 @@ jobs:
10483
path: |
10584
priv/plts
10685
107-
# Step: Create PLTs if no cache was found
10886
- name: Create PLTs
10987
if: steps.plt_cache.outputs.cache-hit != 'true'
11088
run: mix dialyzer --plt
11189

112-
# Step: Save PLT cache. By default, the GitHub Cache action will only save the cache if all steps in the job succeed, so we separate the cache restore and save steps in case running dialyzer fails.
11390
- name: Save PLT cache
11491
id: plt_cache_save
11592
uses: actions/cache/save@v3
@@ -120,19 +97,11 @@ jobs:
12097
path: |
12198
priv/plts
12299
123-
# Step: Run dialyzer
124100
- name: Run dialyzer
125-
# Two formats are included for ease of debugging and it is lightly recommended to use both, see https://github.com/jeremyjh/dialyxir/issues/530 for reasoning
126-
# --format github is helpful to print the warnings in a way that GitHub understands and can place on the /files page of a PR
127-
# --format dialyxir allows the raw GitHub actions logs to be useful because they have the full warning printed
128101
run: mix dialyzer --format github --format dialyxir
129102

130-
# Step: Check that the checked in code has already been formatted.
131-
# This step fails if something was found unformatted.
132-
# Customize this step as desired.
133-
- name: Check Formatting
103+
- name: Check formatting
134104
run: mix format --check-formatted
135105

136-
# Step: Execute the tests.
137106
- name: Run tests
138107
run: mix test

0 commit comments

Comments
 (0)