Skip to content

Commit 15e12d8

Browse files
authored
Freeze GitHub runners' OS version (#943)
* Reformat workflow files * Freeze runner versions to Ubuntu 20.04 This will keep the OS environment consistent with our AWS servers.
1 parent ed7f772 commit 15e12d8

File tree

2 files changed

+26
-27
lines changed

2 files changed

+26
-27
lines changed

.github/workflows/cd.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@ on:
66
- master
77
- deploy
88
paths:
9-
- 'config/**'
10-
- 'lib/**'
11-
- 'priv/**'
12-
- 'rel/**'
13-
- 'test/**'
14-
- '**/*.ex'
15-
- '**/*.exs'
16-
- 'mix.lock'
17-
- '.github/workflows/cd.yml'
18-
- '!config/*.example'
9+
- "config/**"
10+
- "lib/**"
11+
- "priv/**"
12+
- "rel/**"
13+
- "test/**"
14+
- "**/*.ex"
15+
- "**/*.exs"
16+
- "mix.lock"
17+
- ".github/workflows/cd.yml"
18+
- "!config/*.example"
1919

2020
jobs:
2121
ci:
2222
name: Build release
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-20.04
2424
env:
2525
MIX_ENV: prod
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
ELIXIR_VERSION: '1.13.3'
28-
OTP_VERSION: '24.2.1'
27+
ELIXIR_VERSION: "1.13.3"
28+
OTP_VERSION: "24.2.1"
2929
steps:
3030
- uses: rlespinasse/[email protected]
3131
- uses: actions/checkout@v2
@@ -63,4 +63,3 @@ jobs:
6363
prerelease: ${{ env.GITHUB_REF_SLUG == 'master' }}
6464
title: Latest commit on ${{ env.GITHUB_REF_SLUG }}
6565
files: _build/prod/cadet-0.0.1.tar.gz
66-

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@ on:
44
branches:
55
- master
66
paths:
7-
- 'config/**'
8-
- 'lib/**'
9-
- 'priv/**'
10-
- 'rel/**'
11-
- 'test/**'
12-
- '**/*.ex'
13-
- '**/*.exs'
14-
- 'mix.lock'
15-
- '.github/workflows/ci.yml'
16-
- '!config/*.example'
7+
- "config/**"
8+
- "lib/**"
9+
- "priv/**"
10+
- "rel/**"
11+
- "test/**"
12+
- "**/*.ex"
13+
- "**/*.exs"
14+
- "mix.lock"
15+
- ".github/workflows/ci.yml"
16+
- "!config/*.example"
1717
pull_request:
1818

1919
jobs:
2020
ci:
2121
name: Run CI
22-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-20.04
2323
env:
2424
MIX_ENV: test
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
ELIXIR_VERSION: '1.13.3'
27-
OTP_VERSION: '24.2.1'
26+
ELIXIR_VERSION: "1.13.3"
27+
OTP_VERSION: "24.2.1"
2828
services:
2929
postgres:
3030
image: postgres:14.2

0 commit comments

Comments
 (0)