Install CA certificates in GitHub Actions steps #233
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-20.04 | |
| name: mix test (OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| otp: [25.x, 26.x, 27.x] | |
| elixir: [1.18.x] | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install CA certificates | |
| run: sudo apt-get update && sudo apt-get install -y ca-certificates | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: ${{matrix.otp}} | |
| elixir-version: ${{matrix.elixir}} | |
| - name: Install Dependencies | |
| run: | | |
| mix local.rebar --force | |
| mix local.hex --force | |
| mix deps.get | |
| mix deps.compile | |
| - name: Compile | |
| run: mix compile --warnings-as-errors | |
| - name: Run Tests | |
| run: mix test --trace | |
| format: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: elixir:1.18-slim | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| - name: Install CA certificates | |
| run: apt-get update && apt-get install -y ca-certificates | |
| - name: Install Dependencies | |
| run: | | |
| mix local.rebar --force | |
| mix local.hex --force | |
| mix deps.get | |
| mix deps.compile | |
| - name: Check Format | |
| run: mix format --check-formatted --dry-run | |
| credo: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: elixir:1.18-slim | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| - name: Install CA certificates | |
| run: apt-get update && apt-get install -y ca-certificates | |
| - name: Install Dependencies | |
| run: | | |
| mix local.rebar --force | |
| mix local.hex --force | |
| mix deps.get | |
| mix deps.compile | |
| - name: Run Credo | |
| run: mix credo --strict |