From 5c4571825a11ea30294f78d2520ad07471e2cf3e Mon Sep 17 00:00:00 2001 From: Richard Dominick <34370238+RichDom2185@users.noreply.github.com> Date: Fri, 2 Jun 2023 20:13:20 +0800 Subject: [PATCH 1/2] Reformat workflow files --- .github/workflows/cd.yml | 25 ++++++++++++------------- .github/workflows/ci.yml | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 2db58fc57..64d8bd8be 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -6,16 +6,16 @@ on: - master - deploy paths: - - 'config/**' - - 'lib/**' - - 'priv/**' - - 'rel/**' - - 'test/**' - - '**/*.ex' - - '**/*.exs' - - 'mix.lock' - - '.github/workflows/cd.yml' - - '!config/*.example' + - "config/**" + - "lib/**" + - "priv/**" + - "rel/**" + - "test/**" + - "**/*.ex" + - "**/*.exs" + - "mix.lock" + - ".github/workflows/cd.yml" + - "!config/*.example" jobs: ci: @@ -24,8 +24,8 @@ jobs: env: MIX_ENV: prod GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ELIXIR_VERSION: '1.13.3' - OTP_VERSION: '24.2.1' + ELIXIR_VERSION: "1.13.3" + OTP_VERSION: "24.2.1" steps: - uses: rlespinasse/github-slug-action@v3.x - uses: actions/checkout@v2 @@ -63,4 +63,3 @@ jobs: prerelease: ${{ env.GITHUB_REF_SLUG == 'master' }} title: Latest commit on ${{ env.GITHUB_REF_SLUG }} files: _build/prod/cadet-0.0.1.tar.gz - diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d575a730d..c65d34d30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,16 +4,16 @@ on: branches: - master paths: - - 'config/**' - - 'lib/**' - - 'priv/**' - - 'rel/**' - - 'test/**' - - '**/*.ex' - - '**/*.exs' - - 'mix.lock' - - '.github/workflows/ci.yml' - - '!config/*.example' + - "config/**" + - "lib/**" + - "priv/**" + - "rel/**" + - "test/**" + - "**/*.ex" + - "**/*.exs" + - "mix.lock" + - ".github/workflows/ci.yml" + - "!config/*.example" pull_request: jobs: @@ -23,8 +23,8 @@ jobs: env: MIX_ENV: test GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ELIXIR_VERSION: '1.13.3' - OTP_VERSION: '24.2.1' + ELIXIR_VERSION: "1.13.3" + OTP_VERSION: "24.2.1" services: postgres: image: postgres:14.2 From 713d0c7cb08690dcaee2f9ac998d9e7c811d1558 Mon Sep 17 00:00:00 2001 From: Richard Dominick <34370238+RichDom2185@users.noreply.github.com> Date: Fri, 2 Jun 2023 20:13:47 +0800 Subject: [PATCH 2/2] Freeze runner versions to Ubuntu 20.04 This will keep the OS environment consistent with our AWS servers. --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 64d8bd8be..cf4cc5695 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -20,7 +20,7 @@ on: jobs: ci: name: Build release - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: MIX_ENV: prod GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c65d34d30..adde20b0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ on: jobs: ci: name: Run CI - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: MIX_ENV: test GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}