diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf48c3848..00ba5a688 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 - uses: erlef/setup-beam@v1 with: otp-version: '24.2.1' @@ -60,12 +61,10 @@ jobs: - name: Create PLTs if: steps.plt_cache.outputs.cache-hit != 'true' run: mix dialyzer --plt - - name: Run format check - run: mix format --check-formatted - - name: Run linter - run: mix credo --strict - - name: Run dialyzer - run: mix dialyzer --format dialyxir + - run: | + pre-commit install + pre-commit run --all-files + unit-test: runs-on: ubuntu-18.04 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index b86fca33b..000000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,13 +0,0 @@ -on: - - push -defaults: - run: - shell: bash - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: pre-commit/action@v2.0.3