Skip to content

Bump actions/checkout from 4.1.6 to 4.1.7 #23

Bump actions/checkout from 4.1.6 to 4.1.7

Bump actions/checkout from 4.1.6 to 4.1.7 #23

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@692973e3d937129bcbf40652eb9f2f61becf3332
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@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb
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