Add garmin and fitbit authentication (#1298) #287
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: Elixir CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| dependencies: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| elixir: ['1.14.2'] | |
| otp: ['24.3'] | |
| env: | |
| MIX_ENV: test | |
| steps: | |
| - name: Checkout Github repo | |
| uses: actions/checkout@v2 | |
| - name: Sets up an Erlang/OTP environment | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: ${{ matrix.elixir }} | |
| otp-version: ${{ matrix.otp }} | |
| - name: Retrieve cached dependencies | |
| uses: actions/cache@v2 | |
| id: mix-cache | |
| with: | |
| path: | | |
| deps | |
| _build | |
| priv/plts | |
| key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} | |
| - name: Install dependencies | |
| if: steps.mix-cache.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir -p priv/plts | |
| mix local.rebar --force | |
| mix local.hex --force | |
| mix deps.get | |
| mix deps.compile | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: dependencies | |
| strategy: | |
| matrix: | |
| elixir: ['1.14.2'] | |
| otp: ['24.3'] | |
| services: | |
| db: | |
| image: postgres:latest | |
| ports: ['5432:5432'] | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
| env: | |
| MIX_ENV: test | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout Github repo | |
| uses: actions/checkout@v2 | |
| - name: Sets up an Erlang/OTP environment | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| elixir-version: ${{ matrix.elixir }} | |
| otp-version: ${{ matrix.otp }} | |
| - name: Retrieve cached dependencies | |
| uses: actions/cache@v2 | |
| id: mix-cache | |
| with: | |
| path: | | |
| deps | |
| _build | |
| priv/plts | |
| key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }} | |
| - run: | | |
| mix credo | |
| mix coveralls.github |