mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-19 21:03:23 +12:00
chore(ci): update to latest staple-actions
This commit is contained in:
parent
ed62361258
commit
008778c755
1 changed files with 15 additions and 82 deletions
97
.github/workflows/elixir_lib.yml
vendored
97
.github/workflows/elixir_lib.yml
vendored
|
@ -3,17 +3,13 @@ name: Elixir Library
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deps:
|
deps:
|
||||||
name: mix deps.get
|
name: mix deps.get
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
||||||
with:
|
|
||||||
git-token: ${{ secrets.JIMSY_ACCESS_TOKEN }}
|
|
||||||
|
|
||||||
auditor:
|
auditor:
|
||||||
name: mix hex.audit
|
name: mix hex.audit
|
||||||
|
@ -21,11 +17,7 @@ jobs:
|
||||||
needs: deps
|
needs: deps
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
- uses: team-alembic/staple-actions/actions/mix-hex-audit@main
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
|
||||||
with:
|
|
||||||
git-token: ${{ secrets.JIMSY_ACCESS_TOKEN }}
|
|
||||||
- run: mix hex.audit
|
|
||||||
|
|
||||||
build-test:
|
build-test:
|
||||||
name: MIX_ENV=test mix.compile
|
name: MIX_ENV=test mix.compile
|
||||||
|
@ -34,9 +26,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
|
||||||
with:
|
|
||||||
git-token: ${{ secrets.JIMSY_ACCESS_TOKEN }}
|
|
||||||
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
||||||
with:
|
with:
|
||||||
mix-env: test
|
mix-env: test
|
||||||
|
@ -44,60 +33,36 @@ jobs:
|
||||||
formatter:
|
formatter:
|
||||||
name: mix format --check-formatted
|
name: mix format --check-formatted
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
MIX_ENV: test
|
|
||||||
needs: build-test
|
needs: build-test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
- uses: team-alembic/staple-actions/actions/mix-format@main
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
|
||||||
with:
|
with:
|
||||||
git-token: ${{ secrets.JIMSY_ACCESS_TOKEN }}
|
mix-env: test
|
||||||
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
|
||||||
with:
|
|
||||||
mix-env: ${{ env.MIX_ENV }}
|
|
||||||
- run: mix format --check-formatted
|
|
||||||
|
|
||||||
|
|
||||||
credo:
|
credo:
|
||||||
name: mix credo --strict
|
name: mix credo --strict
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
MIX_ENV: test
|
|
||||||
needs: build-test
|
needs: build-test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
- uses: team-alembic/staple-actions/actions/mix-credo@main
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
|
||||||
with:
|
with:
|
||||||
git-token: ${{ secrets.JIMSY_ACCESS_TOKEN }}
|
mix-env: test
|
||||||
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
|
||||||
with:
|
|
||||||
mix-env: ${{ env.MIX_ENV }}
|
|
||||||
- run: mix credo --strict
|
|
||||||
|
|
||||||
doctor:
|
doctor:
|
||||||
name: mix doctor --full --raise
|
name: mix doctor --full --raise
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
MIX_ENV: test
|
|
||||||
needs: build-test
|
needs: build-test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
- uses: team-alembic/staple-actions/actions/mix-doctor@main
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
|
||||||
with:
|
with:
|
||||||
git-token: ${{ secrets.JIMSY_ACCESS_TOKEN }}
|
mix-env: test
|
||||||
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
|
||||||
with:
|
|
||||||
mix-env: ${{ env.MIX_ENV }}
|
|
||||||
- run: mix doctor --full --raise
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: mix test
|
name: mix test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
MIX_ENV: test
|
|
||||||
needs: build-test
|
needs: build-test
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
|
@ -113,16 +78,10 @@ jobs:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
- uses: team-alembic/staple-actions/actions/mix-test@main
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
|
||||||
with:
|
with:
|
||||||
git-token: ${{ secrets.JIMSY_ACCESS_TOKEN }}
|
mix-env: test
|
||||||
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
|
||||||
with:
|
|
||||||
mix-env: ${{ env.MIX_ENV }}
|
|
||||||
- run: mix test
|
|
||||||
env:
|
env:
|
||||||
MIX_ENV: test
|
|
||||||
PGUSER: postgres
|
PGUSER: postgres
|
||||||
PGPASS: postgres
|
PGPASS: postgres
|
||||||
PGHOST: postgres
|
PGHOST: postgres
|
||||||
|
@ -130,20 +89,12 @@ jobs:
|
||||||
dialyzer:
|
dialyzer:
|
||||||
name: mix dialyzer
|
name: mix dialyzer
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
MIX_ENV: test
|
|
||||||
needs: build-test
|
needs: build-test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
- uses: team-alembic/staple-actions/actions/mix-dialyzer@main
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
|
||||||
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
|
||||||
with:
|
with:
|
||||||
mix-env: ${{ env.MIX_ENV }}
|
mix-env: test
|
||||||
- uses: team-alembic/staple-actions/actions/mix-dialyzer-plt@main
|
|
||||||
with:
|
|
||||||
mix-env: ${{ env.MIX_ENV }}
|
|
||||||
- run: mix dialyzer --format github
|
|
||||||
|
|
||||||
build-dev:
|
build-dev:
|
||||||
name: MIX_ENV=dev mix.compile
|
name: MIX_ENV=dev mix.compile
|
||||||
|
@ -158,10 +109,6 @@ jobs:
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
|
||||||
with:
|
|
||||||
git-token: ${{ secrets.JIMSY_ACCESS_TOKEN }}
|
|
||||||
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
||||||
with:
|
with:
|
||||||
mix-env: dev
|
mix-env: dev
|
||||||
|
@ -170,18 +117,11 @@ jobs:
|
||||||
name: mix docs
|
name: mix docs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-dev
|
needs: build-dev
|
||||||
env:
|
|
||||||
MIX_ENV: dev
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
- uses: team-alembic/staple-actions/actions/mix-docs@main
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
|
||||||
with:
|
with:
|
||||||
git-token: ${{ secrets.JIMSY_ACCESS_TOKEN }}
|
mix-env: dev
|
||||||
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
|
||||||
with:
|
|
||||||
mix-env: ${{ env.MIX_ENV }}
|
|
||||||
- run: mix docs
|
|
||||||
- uses: actions/upload-pages-artifact@v1
|
- uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
path: doc/
|
path: doc/
|
||||||
|
@ -205,17 +145,10 @@ jobs:
|
||||||
name: mix git-ops.release
|
name: mix git-ops.release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-dev
|
needs: build-dev
|
||||||
env:
|
|
||||||
MIX_ENV: dev
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: team-alembic/staple-actions/actions/install-elixir@main
|
|
||||||
- uses: team-alembic/staple-actions/actions/mix-deps-get@main
|
|
||||||
with:
|
|
||||||
git-token: ${{ secrets.JIMSY_ACCESS_TOKEN }}
|
|
||||||
- uses: team-alembic/staple-actions/actions/mix-compile@main
|
|
||||||
with:
|
|
||||||
mix-env: ${{ env.MIX_ENV }}
|
|
||||||
- uses: team-alembic/staple-actions/actions/git-ops@main
|
- uses: team-alembic/staple-actions/actions/git-ops@main
|
||||||
|
with:
|
||||||
|
mix-env: dev
|
||||||
|
|
Loading…
Reference in a new issue