summaryrefslogtreecommitdiff
path: root/.github/workflows/elixir.yml
diff options
context:
space:
mode:
authorBen Busby <noreply+git@benbusby.com>2021-10-26 21:21:00 -0600
committerGitHub <noreply@github.com>2021-10-26 21:21:00 -0600
commit83bcad2eda38e34897dc013e2477cc4e26530d8e (patch)
treebe44df08f3bd93bb4b640e4c8cb10213a9dd6284 /.github/workflows/elixir.yml
parente87973c5e5c3c2091a1bf2b69f5adf40f48ffde7 (diff)
downloadfarside-83bcad2eda38e34897dc013e2477cc4e26530d8e.tar.gz
Add elixir CI
Diffstat (limited to '.github/workflows/elixir.yml')
-rw-r--r--.github/workflows/elixir.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml
new file mode 100644
index 0000000..c6617b0
--- /dev/null
+++ b/.github/workflows/elixir.yml
@@ -0,0 +1,31 @@
+name: Elixir CI
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ build:
+
+ name: Build and test
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Elixir
+ uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24
+ with:
+ elixir-version: '1.10.3'
+ otp-version: '22.3'
+ - name: Restore dependencies cache
+ uses: actions/cache@v2
+ 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