-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLATFORM-1375]: Migrate csv_schema to GHA (#15)
* 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
1 parent
d8c10e2
commit 8878d0a
Showing
14 changed files
with
218 additions
and
306 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.