mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
Bumps [actions/cache](https://github.com/actions/cache) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](d4323d4df1...5a3ec84eff)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
71 lines
2.3 KiB
YAML
71 lines
2.3 KiB
YAML
name: Elixir Dependency Verification and Static Analysis
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
env:
|
|
CACHE_NAME_DEPS: cache-elixir-deps
|
|
CACHE_NAME_COMPILED_DEV: cache-compiled-dev-build
|
|
CACHE_NAME_COMPILED_TEST: cache-compiled-test-build
|
|
ELIXIR_ASSERT_TIMEOUT: 1000
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
verify_dependencies_and_static_analysis:
|
|
name: Verify dependencies, POT files, unused dependencies, static analysis
|
|
runs-on: ubuntu-24.04
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Setup Elixir and Cache Dependencies
|
|
id: setup-elixir-and-cache-deps
|
|
uses: ./.github/actions/setup-elixir-and-cache-deps
|
|
with:
|
|
cache-name-deps: ${{ env.CACHE_NAME_DEPS }}
|
|
cache-name-compiled: ${{ env.CACHE_NAME_COMPILED_DEV }}
|
|
mix-env: dev
|
|
|
|
- name: Compile without warnings
|
|
run: mix compile --warnings-as-errors
|
|
shell: sh
|
|
|
|
- name: Verify that POT files are up to date
|
|
run: mix gettext.extract --check-up-to-date
|
|
|
|
- name: Check unused dependencies
|
|
run: mix deps.unlock --check-unused
|
|
|
|
- name: Restore PLT cache
|
|
id: plt_cache
|
|
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
with:
|
|
key: |
|
|
${{ runner.os }}-${{ steps.setup-elixir-and-cache-deps.outputs.elixir-version }}-${{ steps.setup-elixir-and-cache-deps.outputs.otp-version }}-plt
|
|
restore-keys: |
|
|
${{ runner.os }}-${{ steps.setup-elixir-and-cache-deps.outputs.elixir-version }}-${{ steps.setup-elixir-and-cache-deps.outputs.otp-version }}-plt
|
|
path: |
|
|
priv/plts
|
|
|
|
- name: Create Persistent Lookup Tables (PLTs) for Dialyzer
|
|
if: steps.plt_cache.outputs.cache-hit != 'true'
|
|
run: mix dialyzer --plt
|
|
|
|
- name: Save PLT cache
|
|
id: plt_cache_save
|
|
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
if: steps.plt_cache.outputs.cache-hit != 'true'
|
|
with:
|
|
key: |
|
|
${{ runner.os }}-${{ steps.setup-elixir-and-cache-deps.outputs.elixir-version }}-${{ steps.setup-elixir-and-cache-deps.outputs.otp-version }}-plt
|
|
path: |
|
|
priv/plts
|
|
|
|
- name: Run dialyzer for static analysis
|
|
run: mix dialyzer --format github
|