@@ -3,27 +3,27 @@ on: push
33name : Privately published Elixir Library (with git ops)
44
55env :
6- ELIXIR_VERSION : " 1.9 "
7- OTP_VERSION : " 22.2 "
6+ ELIXIR_VERSION : " 1.11.4 "
7+ OTP_VERSION : " 22.3.1 "
88
99jobs :
1010 deps :
11- runs-on : ubuntu-latest
11+ runs-on : ubuntu-20.04
1212 env :
1313 NARRATIVE_HEX_ORG_API_KEY : ${{ secrets.NARRATIVE_HEX_ORG_API_KEY }}
1414 MIX_ENV : test
1515 steps :
1616 - name : Checking out project
1717 uses : actions/checkout@v2
1818 - name : " Setting up Elixir"
19- uses : actions /setup-elixir @v1
19+ uses : erlef /setup-beam @v1
2020 with :
2121 otp-version : ${{ env.OTP_VERSION }}
2222 elixir-version : ${{ env.ELIXIR_VERSION }}
2323 - name : Signing into narrativeapp organisation on hex
2424 run : mix hex.organization auth narrativeapp --key $NARRATIVE_HEX_ORG_API_KEY
2525 - name : Downloading dependency cache
26- uses : actions/cache@v2
26+ uses : actions/cache@v3
2727 with :
2828 path : deps
2929 key : ${{ runner.os }}-deps
@@ -35,15 +35,15 @@ jobs:
3535 path : deps/
3636
3737 build :
38- runs-on : ubuntu-latest
38+ runs-on : ubuntu-20.04
3939 needs : ["deps"]
4040 env :
4141 MIX_ENV : test
4242 steps :
4343 - name : Checking out project
4444 uses : actions/checkout@v2
4545 - name : " Setting up Elixir"
46- uses : actions /setup-elixir @v1
46+ uses : erlef /setup-beam @v1
4747 with :
4848 otp-version : ${{ env.OTP_VERSION }}
4949 elixir-version : ${{ env.ELIXIR_VERSION }}
5353 name : deps
5454 path : deps/
5555 - name : Downloading build artifact cache
56- uses : actions/cache@v2
56+ uses : actions/cache@v3
5757 with :
5858 path : _build
5959 key : ${{ runner.os }}-build
@@ -66,15 +66,15 @@ jobs:
6666 path : _build/
6767
6868 credo :
69- runs-on : ubuntu-latest
69+ runs-on : ubuntu-20.04
7070 needs : ["deps", "build"]
7171 env :
7272 MIX_ENV : test
7373 steps :
7474 - name : Checking out project
7575 uses : actions/checkout@v2
7676 - name : " Setting up Elixir"
77- uses : actions /setup-elixir @v1
77+ uses : erlef /setup-beam @v1
7878 with :
7979 otp-version : ${{ env.OTP_VERSION }}
8080 elixir-version : ${{ env.ELIXIR_VERSION }}
@@ -91,19 +91,19 @@ jobs:
9191 - run : mix credo --strict
9292
9393 formatter :
94- runs-on : ubuntu-latest
94+ runs-on : ubuntu-20.04
9595 steps :
9696 - name : Checking out project
9797 uses : actions/checkout@v2
9898 - name : " Setting up Elixir"
99- uses : actions /setup-elixir @v1
99+ uses : erlef /setup-beam @v1
100100 with :
101101 otp-version : ${{ env.OTP_VERSION }}
102102 elixir-version : ${{ env.ELIXIR_VERSION }}
103103 - run : mix format --check-formatted
104104
105105 audit :
106- runs-on : ubuntu-latest
106+ runs-on : ubuntu-20.04
107107 needs : ["deps"]
108108 env :
109109 NARRATIVE_HEX_ORG_API_KEY : ${{ secrets.NARRATIVE_HEX_ORG_API_KEY }}
@@ -112,7 +112,7 @@ jobs:
112112 - name : Checking out project
113113 uses : actions/checkout@v2
114114 - name : " Setting up Elixir"
115- uses : actions /setup-elixir @v1
115+ uses : erlef /setup-beam @v1
116116 with :
117117 otp-version : ${{ env.OTP_VERSION }}
118118 elixir-version : ${{ env.ELIXIR_VERSION }}
@@ -125,15 +125,15 @@ jobs:
125125 - run : mix hex.audit
126126
127127 test :
128- runs-on : ubuntu-latest
128+ runs-on : ubuntu-20.04
129129 needs : ["deps", "build"]
130130 env :
131131 MIX_ENV : test
132132 steps :
133133 - name : Checking out project
134134 uses : actions/checkout@v2
135135 - name : " Setting up Elixir"
136- uses : actions /setup-elixir @v1
136+ uses : erlef /setup-beam @v1
137137 with :
138138 otp-version : ${{ env.OTP_VERSION }}
139139 elixir-version : ${{ env.ELIXIR_VERSION }}
@@ -150,7 +150,7 @@ jobs:
150150 - run : mix test
151151
152152 is_releasable :
153- runs-on : ubuntu-latest
153+ runs-on : ubuntu-20.04
154154 needs : ["deps", "test", "audit", "formatter", "credo"]
155155 if : ${{ github.event_name == 'push' && github.ref != 'refs/heads/master'}}
156156 env :
@@ -159,7 +159,7 @@ jobs:
159159 - name : Checking out project
160160 uses : actions/checkout@v2
161161 - name : " Setting up Elixir"
162- uses : actions /setup-elixir @v1
162+ uses : erlef /setup-beam @v1
163163 with :
164164 otp-version : ${{ env.OTP_VERSION }}
165165 elixir-version : ${{ env.ELIXIR_VERSION }}
@@ -192,7 +192,7 @@ jobs:
192192 path : docs.tar.gz
193193
194194 git_ops :
195- runs-on : ubuntu-latest
195+ runs-on : ubuntu-20.04
196196 needs : ["deps", "test", "audit", "formatter", "credo"]
197197 if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
198198 env :
@@ -203,7 +203,7 @@ jobs:
203203 with :
204204 fetch-depth : 0
205205 - name : " Setting up Elixir"
206- uses : actions /setup-elixir @v1
206+ uses : erlef /setup-beam @v1
207207 with :
208208 otp-version : ${{ env.OTP_VERSION }}
209209 elixir-version : ${{ env.ELIXIR_VERSION }}
0 commit comments