Update private config #7
This file contains 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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Elixir CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Elixir | |
uses: erlef/[email protected] | |
with: | |
elixir-version: '1.16.2' # [Required] Define the Elixir version | |
otp-version: '26.2.4' # [Required] Define the Erlang/OTP version | |
- name: Restore dependencies cache | |
uses: actions/[email protected] | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Setup environment | |
run: echo "MIX_ENV=test" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Compile dependencies | |
run: mix deps.compile | |
- name: Install database | |
uses: ikalnytskyi/action-setup-postgres@v5 | |
with: | |
username: postgres | |
password: CWPIG-QRVIY-IWDMJ-PDQMV | |
database: double_gis_monitor_repo | |
port: 5432 | |
id: postgres | |
- name: Create database | |
run: mix ecto.create | |
- name: Apply migrations | |
run: mix ecto.migrate | |
- name: Compile project | |
run: mix compile | |
- name: Run tests | |
run: mix test |