Add Erlang/OTP 27 Process label support (#446) #1132
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
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
mix_test: | |
runs-on: ubuntu-22.04 | |
env: | |
MIX_ENV: test | |
services: | |
pg: | |
image: postgres:11 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: postgres | |
ports: | |
- 5432:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
mysql: | |
image: mysql:8 | |
env: | |
MYSQL_DATABASE: phx_dashboard_test | |
MYSQL_ALLOW_EMPTY_PASSWORD: "yes" | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- pair: | |
elixir: 1.14.5 | |
otp: 24.3 | |
- pair: | |
elixir: 1.15.6 | |
otp: 26.0.2 | |
- pair: | |
elixir: 1.17.2 | |
otp: 27.0.1 | |
lint: lint | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.pair.otp}} | |
elixir-version: ${{matrix.pair.elixir}} | |
- name: Install Dependencies | |
run: mix deps.get --only test | |
- run: mix format --check-formatted | |
if: ${{ matrix.lint }} | |
- run: mix deps.get && mix deps.unlock --check-unused | |
if: ${{ matrix.lint }} | |
- run: mix deps.compile | |
- run: mix compile --warnings-as-errors | |
if: ${{ matrix.lint }} | |
- run: mix test --include integration | |
npm_test: | |
name: npm test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: 1.14.0 | |
otp-version: 24.3 | |
- name: Install Dependencies | |
run: mix deps.get --only test | |
- name: Setup Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: npm install and test | |
run: | | |
cd assets | |
npm ci | |
npm test |