Skip to content

Commit a7ce7a6

Browse files
committed
Add GitHub action workflow
1 parent 9e229f6 commit a7ce7a6

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Elixir CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
15+
name: Build and test
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Elixir
21+
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0
22+
with:
23+
elixir-version: '1.17.2'
24+
otp-version: '27.0'
25+
- name: Restore dependencies cache
26+
uses: actions/cache@v3
27+
with:
28+
path: deps
29+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
30+
restore-keys: ${{ runner.os }}-mix-
31+
- name: Install dependencies
32+
run: mix deps.get
33+
- name: Run tests
34+
run: mix test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# elixir-temp
22

3-
[![Build Status](https://travis-ci.org/danhper/elixir-temp.svg?branch=master)](https://travis-ci.org/danhper/elixir-temp)
3+
![Build status](https://github.com/danhper/elixir-temp/actions/workflows/ci.yml/badge.svg)
44
[![Module Version](https://img.shields.io/hexpm/v/temp.svg)](https://hex.pm/packages/temp)
55
[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/temp/)
66
[![Total Download](https://img.shields.io/hexpm/dt/temp.svg)](https://hex.pm/packages/temp)

0 commit comments

Comments
 (0)