Skip to content

Using Path.join/1 to prevent double-slash issues #1104

Using Path.join/1 to prevent double-slash issues

Using Path.join/1 to prevent double-slash issues #1104

Workflow file for this run

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
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 16.x
uses: actions/setup-node@v3
with:
node-version: 16
- name: npm install and test
run: |
cd assets
npm ci
npm test