From 01ac65b96352cfc57ac665dc0f61c1345060ddce Mon Sep 17 00:00:00 2001 From: William Huba Date: Thu, 29 Aug 2024 14:41:57 -0400 Subject: [PATCH] Remove duplicate GHA workflow --- .github/workflows/elixir.yml | 38 ------------------------------------ .github/workflows/main.yml | 4 ++++ 2 files changed, 4 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/elixir.yml diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml deleted file mode 100644 index 047ef50..0000000 --- a/.github/workflows/elixir.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Elixir CI - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -permissions: - contents: read - -jobs: - build: - - name: Build and test - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up Elixir - uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f - with: - elixir-version: '1.12.3' # Define the elixir version [required] - otp-version: '24.1' # Define the OTP version [required] - env: - ImageOS: ubuntu20 - - name: Restore dependencies cache - uses: actions/cache@v3 - with: - path: deps - key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} - restore-keys: ${{ runner.os }}-mix- - - name: Install dependencies - run: mix deps.get - - name: Check linter - run: mix credo --strict -a - - name: Run tests - run: mix test diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c759752..711f081 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,6 +76,10 @@ jobs: if: matrix.lint run: mix compile --warnings-as-errors + - name: Check linter + if: matrix.lint + run: mix credo --strict -a + - name: Run tests run: mix test