Skip to content

Commit

Permalink
[PLATFORM-1375]: Migrate csv_schema to GHA (#15)
Browse files Browse the repository at this point in the history
* Add codeowners

* Add dependabot

* Add CI GHA

* Elixir 1.12

* Update container elixir version to 1.5

* Resolve warning about mix config

* Fix credo warnings

* Update dependencies

* Check that data param contains a string literal

* Stick csv version to 2.5

* Upgrade csv version to 3.2.1 and fix unexpected behaviour of the lib

* Remove parallel_stream from deps as unused

* Remove drone.yml
  • Loading branch information
cottinisimone authored Dec 18, 2023
1 parent d8c10e2 commit 8878d0a
Show file tree
Hide file tree
Showing 14 changed files with 218 additions and 306 deletions.
270 changes: 0 additions & 270 deletions .drone.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# see https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
* @primait/shared-services
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "mix" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
39 changes: 39 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CD

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
otp-version: '24'
elixir-version: '1.13'
- name: Checkout
uses: actions/checkout@v3
- name: setup hex
run: |
mix local.hex --force
mix local.rebar --force
- name: Get deps
run: mix deps.get
- name: Get version
run: |
VERSION=$(grep -m1 version mix.exs | cut -d'"' -f2)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Check version
if: ${{ github.event.release.tag_name != env.VERSION }}
run: |
echo "Github ref tag [${{ github.event.release.tag_name }}] is different from mix.exs version [${{ env.VERSION }}]"
exit 1
- name: Login to hex.pm
run: |
mix hex.config api_key "$HEX_AUTH_KEY"
env:
HEX_AUTH_KEY: ${{ secrets.HEX_AUTH_KEY }}
- name: Publish
run: mix hex.publish --yes
Loading

0 comments on commit 8878d0a

Please sign in to comment.