Skip to content

remove NewAperio. It was sold in 2022, and LinkedIn talks about the company as existing in the past tense. #35

remove NewAperio. It was sold in 2022, and LinkedIn talks about the company as existing in the past tense.

remove NewAperio. It was sold in 2022, and LinkedIn talks about the company as existing in the past tense. #35

name: Validate Company Industry
on:
pull_request:
push:
branches:
- main
merge_group:
jobs:
validate:
name: Validate Company Industry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: beam
uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
- id: cache
uses: actions/cache@v3
with:
key: |
${{ env.CACHE_VERSION }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-credo-${{ hashFiles('mix.lock') }}-${{ github.ref }}
restore-keys: |
${{ env.CACHE_VERSION }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-credo-${{ hashFiles('mix.lock') }}-${{ format('refs/heads/{0}', github.event.repository.default_branch) }}
${{ env.CACHE_VERSION }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-credo-
${{ env.CACHE_VERSION }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-
path: |
_build
deps
- if: steps.cache.outputs.cache-hit != 'true'
run: mix deps.get
- name: Get changed company files
id: changed-company-files
uses: tj-actions/changed-files@v45
with:
files: priv/companies/**.exs
- name: Run validate
if: steps.changed-company-files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-company-files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
mix validate_company_file "$file"
done