diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7d54f505..f6de12f5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,10 +15,6 @@ concurrency: jobs: ci: runs-on: ubuntu-latest - strategy: - matrix: - otp-version: [25.0] - elixir-version: [1.13] services: db: @@ -36,10 +32,11 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: erlef/setup-elixir@v1 + - uses: erlef/setup-beam@v1 + id: setup-beam with: - otp-version: ${{ matrix.otp-version }} - elixir-version: ${{ matrix.elixir-version }} + version-file: .tool-versions + version-type: strict - uses: actions/cache@v3 with: @@ -47,12 +44,12 @@ jobs: deps _build priv/plts - key: ${{ runner.os }}-mix-${{ matrix.otp-version }}-${{ matrix.elixir-version }}-${{ hashFiles(format('{0}/mix.lock', github.workspace)) }} + key: ${{ runner.os }}-mix-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles(format('{0}/mix.lock', github.workspace)) }} - uses: actions/setup-node@v3 with: - node-version: 16.15 - cache: 'npm' + node-version-file: .tool-versions + cache: npm - name: Setup environment variables uses: c-py/action-dotenv-to-setenv@v2