From 4d6de508e90326211225fff3c5d1d1e3bef724a0 Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Sun, 5 Feb 2023 13:53:14 -0600 Subject: [PATCH 1/3] Create elixir.yml --- .github/workflows/elixir.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/elixir.yml diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml new file mode 100644 index 0000000..ac08c6a --- /dev/null +++ b/.github/workflows/elixir.yml @@ -0,0 +1,34 @@ +name: Elixir CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + name: Build and test + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Elixir + uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f + with: + elixir-version: '1.14.1' # Define the elixir version [required] + otp-version: '24' # Define the OTP version [required] + - name: Restore dependencies cache + uses: actions/cache@v3 + with: + path: deps + key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} + restore-keys: ${{ runner.os }}-mix- + - name: Install dependencies + run: mix deps.get + - name: Run tests + run: mix test From 8875019e2d7e675062f4a934015b29cdcd5bd9fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 5 Feb 2023 19:54:21 +0000 Subject: [PATCH 2/3] Bump nanoid from 3.1.23 to 3.3.4 in /assets Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.23 to 3.3.4. - [Release notes](https://github.com/ai/nanoid/releases) - [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md) - [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.3.4) --- updated-dependencies: - dependency-name: nanoid dependency-type: indirect ... Signed-off-by: dependabot[bot] --- assets/yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/yarn.lock b/assets/yarn.lock index c9d18b3..affe659 100644 --- a/assets/yarn.lock +++ b/assets/yarn.lock @@ -403,9 +403,9 @@ minimist@^1.2.5: integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== nanoid@^3.1.23: - version "3.1.23" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" - integrity sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw== + version "3.3.4" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" + integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== nomnom@1.8.1: version "1.8.1" From 4958ca823b10a83e1dc4dd033eae97c36f086580 Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Sun, 5 Feb 2023 13:59:04 -0600 Subject: [PATCH 3/3] Add ImageOS env --- .github/workflows/elixir.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index ac08c6a..324f210 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -8,6 +8,10 @@ on: permissions: contents: read + +env: + MIX_ENV: test + ImageOS: ubuntu20 jobs: build: @@ -20,8 +24,8 @@ jobs: - name: Set up Elixir uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f with: - elixir-version: '1.14.1' # Define the elixir version [required] - otp-version: '24' # Define the OTP version [required] + elixir-version: '1.14.1' + otp-version: '24' - name: Restore dependencies cache uses: actions/cache@v3 with: