Skip to content

Commit

Permalink
Fixes GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgio Torres committed Feb 14, 2024
1 parent 6928a62 commit d58770e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Yamel CD

on:
workflow_run:
workflows: ["Yamel Master CI"]
workflows: ["Yamel Main CI"]
types:
- completed

Expand Down Expand Up @@ -128,4 +128,4 @@ jobs:
- env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
run: mix hex.publish --yes
run: mix hex.publish --yes
51 changes: 29 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,24 @@ name: Yamel CI
on:
pull_request:
branches:
- master
- main

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
otp: ['22.3.4.26']
elixir: ['1.8.2']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Elixir
uses: actions/setup-elixir@v1
uses: erlef/setup-beam@v1
with:
elixir-version: '1.8.x'
otp-version: '22.3'
elixir-version: '1.8.2'
otp-version: '22.3.4.26'
version-type: 'strict'
- name: Cache Dependencies
uses: actions/cache@v2
with:
Expand All @@ -40,16 +45,17 @@ jobs:
run: mix compile

lint:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Elixir
uses: actions/setup-elixir@v1
uses: erlef/setup-beam@v1
with:
elixir-version: '1.8.x'
otp-version: '22.3'
elixir-version: '1.8.2'
otp-version: '22.3.4.26'
version-type: 'strict'
- name: Cache Dependencies
uses: actions/cache@v2
with:
Expand All @@ -65,16 +71,17 @@ jobs:
run: mix format --check-formatted

test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: build

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Elixir
uses: actions/setup-elixir@v1
uses: erlef/setup-beam@v1
with:
elixir-version: '1.8.x'
otp-version: '22.3'
elixir-version: '1.8.2'
otp-version: '22.3.4.26'
version-type: 'strict'
- name: Cache Dependencies
uses: actions/cache@v2
with:
Expand All @@ -88,20 +95,20 @@ jobs:
- run: mix test

coverage:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: test

env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v3
- name: Set up Elixir
uses: actions/setup-elixir@v1
uses: erlef/setup-beam@v1
with:
elixir-version: '1.9.x'
otp-version: '22.3'
elixir-version: '1.8.2'
otp-version: '22.3.4.26'
version-type: 'strict'

- name: Cache Dependencies
uses: actions/cache@v2
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/master-ci.yml → .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
name: Yamel Master CI
name: Yamel Main CI

on:
push:
branches:
- master
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['22.2']
elixir: ['1.8.2']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Elixir
uses: actions/setup-elixir@v1
uses: erlef/setup-beam@v1
with:
elixir-version: '1.8.x'
otp-version: '22.3'
elixir-version: '1.8.2'
otp-version: '22.2'
- name: Cache Dependencies
uses: actions/cache@v2
with:
Expand Down

0 comments on commit d58770e

Please sign in to comment.