Skip to content

Commit 265837e

Browse files
committed
update ci.yml
1 parent f955930 commit 265837e

File tree

1 file changed

+16
-35
lines changed

1 file changed

+16
-35
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,60 +5,41 @@ on:
55
push:
66

77
jobs:
8-
check_commit_message:
9-
name: skips CI and prints cli message, without fail build badge
10-
runs-on: ubuntu-latest
11-
if: "contains(github.event.head_commit.message, '[skip ci]')"
12-
steps:
13-
- run: echo "no need to build, based from commit message"
14-
8+
# https://docs.github.com/en/actions/managing-workflow-runs/skipping-workflow-runs
9+
# Workflows that would otherwise be triggered using `on: push` or
10+
# `on: pull_request` won't be triggered if you add any of the
11+
# following strings to the commit message in a push, or the HEAD
12+
# commit of a pull request:
13+
# - [skip ci]
14+
# - [ci skip]
15+
# - [no ci]
16+
# - [skip actions]
17+
# - [actions skip]
1518
test:
16-
name: Elixir v${{ matrix.elixir }}/OTP v${{ matrix.otp }}
17-
runs-on: ubuntu-latest
18-
strategy:
19-
matrix:
20-
include:
21-
- elixir: 1.11.x
22-
otp: 22
23-
- elixir: 1.11.x
24-
otp: 23
25-
- elixir: 1.12.x
26-
otp: 23
27-
- elixir: 1.13.x
28-
otp: 24
29-
- elixir: 1.14.x
30-
otp: 25
31-
- elixir: 1.15.x
32-
otp: 26
33-
- elixir: 1.16.x
34-
otp: 26
35-
warnings_as_errors: true
36-
static_analysis: true
19+
name: Elixir setup and test
20+
runs-on: ubuntu-20.04
3721
env:
3822
MIX_ENV: test
3923
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
41-
# doesn't contain "ci skip" in commit message
42-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
4324
steps:
4425
- name: Checkout repo
4526
uses: actions/checkout@v4
4627

4728
- name: Setup Erlang/OTP & Elixir
4829
uses: erlef/setup-beam@v1
4930
with:
50-
otp-version: ${{ matrix.otp }}
51-
elixir-version: ${{ matrix.elixir }}
31+
otp-version: "22"
32+
elixir-version: "1.9.0"
5233

5334
- name: Cache artifacts
5435
uses: actions/cache@v4
5536
with:
5637
path: |
5738
deps
5839
_build
59-
key: ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-mix-${{ hashFiles('**/mix.lock') }}
40+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
6041
restore-keys: |
61-
${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-mix-
42+
${{ runner.os }}-mix-
6243
6344
- name: Install Dependencies
6445
run: |

0 commit comments

Comments
 (0)