Merge pull request #5 from MBXSystems/hotfix/has-children #26
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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
env: | |
FORCE_COLOR: 1 | |
strategy: | |
fail-fast: false | |
matrix: | |
elixirbase: | |
- "1.16.0-erlang-24.2.2-ubuntu-jammy-20231004" | |
steps: | |
- uses: earthly/actions-setup@v1 | |
- uses: actions/checkout@v3 | |
- name: ecto test under ${{ matrix.elixirbase }} | |
run: earthly -P --ci --build-arg ELIXIR_BASE=${{ matrix.elixirbase }} +test | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
env: | |
FORCE_COLOR: 1 | |
strategy: | |
fail-fast: false | |
matrix: | |
elixirbase: | |
- "1.16.0-erlang-24.2.2-ubuntu-jammy-20231004" | |
steps: | |
- uses: earthly/actions-setup@v1 | |
- uses: actions/checkout@v3 | |
- name: ecto lint under ${{ matrix.elixirbase }} | |
run: earthly -P --ci --build-arg ELIXIR_BASE=${{ matrix.elixirbase }} +lint | |
- name: Cache PLT files | |
id: cache_plt | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache_plt | |
with: | |
path: | | |
/src/nested_lines/_build/test/*.plt | |
/src/nested_lines/_build/test/*.plt.hash | |
key: lint-${{ env.cache-name }}-base-${{ matrix.elixirbase }} | |
restore-keys: | | |
lint-${{ env.cache-name }}-base-${{ matrix.elixirbase }} | |
lint-${{ env.cache-name }}-base- | |
lint-${{ env.cache-name }}- | |
publish: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Publish to Hex.pm | |
uses: elephantoss/action-publish-hex@v1 | |
env: | |
HEX_API_KEY: ${{ secrets.HEX_API_KEY }} |