feat: block routes based on event start time #374
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: Build and Test | |
on: | |
push: | |
branches: [main] | |
paths: | |
- '**/*.ex' | |
- '**/*.exs' | |
- '**/*.html.heex' | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize] | |
paths: | |
- '**/*.ex' | |
- '**/*.exs' | |
- '**/*.html.heex' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
env: | |
MIX_ENV: test | |
strategy: | |
matrix: | |
otp: [27.x] | |
elixir: [1.17.x] | |
services: | |
db: | |
image: postgres:14.1 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_USERNAME: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_HOSTNAME: 0.0.0.0 | |
steps: | |
- name: βοΈ Checkout repository | |
uses: actions/checkout@v3 | |
- name: π§ Setup Elixir ${{ matrix.elixir }} (OTP ${{matrix.otp}}) | |
uses: ./.github/actions | |
with: | |
otp-version: ${{ matrix.otp }} | |
elixir-version: ${{ matrix.elixir }} | |
build-flags: --all-warnings --warnings-as-errors | |
- name: π¬ Run the tests | |
run: mix test --warnings-as-errors |