Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Bump react and @types/react in /assets #390

Bump react and @types/react in /assets

Bump react and @types/react in /assets #390

name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
env:
MIX_ENV: test
# Remove if you don't need a database
services:
db:
image: "postgres:15.3-alpine"
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: phoenix_react_template_test
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Elixir Project
uses: ./.github/actions/elixir-setup
with:
elixir-version: 1.16.2
otp-version: 26.2.4
build-flags: --all-warnings --warnings-as-errors
build-app: true
- name: Run Migrations
run: mix ecto.migrate
# Run tests & migrations even if compilation failed (probably due to warnings)
# so that we give devs as much feedback as possible & save some time.
if: always()
- name: Run Tests
run: mix test --warnings-as-errors
if: always()