Skip to content

Add smoke tests

Add smoke tests #194

Workflow file for this run

name: Smoke Test
on: [push, pull_request, workflow_dispatch]
jobs:
build_and_test:
runs-on: ubuntu-20.04
container:
image: hexpm/elixir:1.15.2-erlang-26.0.2-debian-bookworm-20230612
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install / Build Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: |
mix test
build_and_test_on_docker:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1
with:
install: true
- name: Build Docker image and store in cache
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
with:
context: .
push: false
load: true
tags: exercism/elixir-representer
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Tests in Docker
run: bin/run-tests-in-docker.sh