Skip to content

Run representer on all exercises in CI #10

Run representer on all exercises in CI

Run representer on all exercises in CI #10

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
build_and_test:
runs-on: ubuntu-22.04
container:
image: hexpm/elixir:1.16.0-erlang-26.2.1-debian-bookworm-20231009
steps:
- name: Install git & jq
run: |
apt-get update
apt-get install -y git jq
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
submodules: recursive
- name: Update submodules
run: |
git config --global --add safe.directory /__w/elixir-representer/elixir-representer
git submodule update --recursive --remote
- name: Install / Build Dependencies
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Run Tests
run: |
mix test
- name: Run representer on example solutions on all exercises
run: |
./bin/build.sh
./bin/run-all-exercises.sh
build_and_test_on_docker:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20
with:
install: true
- name: Build Docker image and store in cache
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
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