Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileoverlord committed Apr 4, 2024
1 parent d020be1 commit 4fb7064
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Test

on:
pull_request:
branches:
- "**"
push:
branches:
- main

permissions:
contents: read

jobs:
build:
name: Build and test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.16.2'
otp-version: '26.2.3'
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Get dependencies and compile
run: |
mix deps.get
mix compile --warnings-as-errors
- name: Verify formatting
run: mix format --check-formatted
- name: Audit dependencies
run: mix hex.audit
- name: Run tests
run: mix test

0 comments on commit 4fb7064

Please sign in to comment.