Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
Using generated file from GitHub template.
  • Loading branch information
philss authored Aug 8, 2023
1 parent 4a1a34c commit b061ad6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Elixir CI

on:
push:
branches: [ "main" ]
pull_request:
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/[email protected]
with:
elixir-version: '1.15.2'
otp-version: '26.0'

- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-

- name: Install dependencies
run: mix deps.get

- name: Run tests
run: mix test

0 comments on commit b061ad6

Please sign in to comment.