Skip to content

feat: bump js deps #124

feat: bump js deps

feat: bump js deps #124

Workflow file for this run

name: Build and Check Elixir
on:
pull_request:
branches: ["main"]
permissions:
contents: read
env:
MIX_ENV: dev
OTP: "26.2.2"
ELIXIR: "1.16.1"
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/[email protected]
with:
elixir-version: ${{ env.ELIXIR }}
otp-version: ${{ env.OTP }}
- name: Restore dependencies cache
uses: actions/cache@v4
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-mix-
- name: Install dependencies
if: steps.mix-cache.outputs.cache-hit != 'true'
run: |
mix deps.get --only dev
mix deps.get --only test
- name: Restore build cache
uses: actions/cache@v4
id: build-cache
with:
path: _build
key: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-build-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-build-
- name: Build dependencies
if: steps.build-cache.outputs.cache-hit != 'true'
run: |
MIX_ENV=dev mix do deps.compile, compile
MIX_ENV=test mix do deps.compile, compile
- name: Check format
run: mix format --check-formatted
- name: Run Credo
run: mix credo --strict
- name: Run tests
run: MIX_ENV=test mix test
- name: Retrieve PLT Cache
uses: actions/cache@v4
id: plt-cache
with:
path: priv/plts
key: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-plts-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-${{ env.OTP }}-${{ env.ELIXIR }}-plts-
- name: Create PLTs
if: steps.plt-cache.outputs.cache-hit != 'true'
run: |
mkdir -p priv/plts
mix dialyzer --plt
- name: Run dialyzer
run: mix dialyzer --no-check --halt-exit-status
- name: SAST with sobelow
run: mix sobelow --config .sobelow-conf