Skip to content

🤖 Sync org-wide files to upstream repo #57

🤖 Sync org-wide files to upstream repo

🤖 Sync org-wide files to upstream repo #57

Workflow file for this run

name: Run tests
on:
pull_request:
push:
branches: [master, main]
jobs:
test:
name: Run the tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5
- name: Install elm tools and cache the ELM_HOME directory
uses: mpizenberg/elm-tooling-action@9938f6852d942f9714cac58761f378bf25881513
with:
cache-key: elm-test-${{ hashFiles('elm-tooling.json', 'elm.json') }}
cache-restore-key: elm-test
- name: Run the tests
run: elm-test-rs
format:
name: Check formatting
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5
- name: Install elm tools and cache the ELM_HOME directory
uses: mpizenberg/elm-tooling-action@9938f6852d942f9714cac58761f378bf25881513
with:
cache-key: elm-format-${{ hashFiles('elm-tooling.json') }}
cache-restore-key: elm-format
- name: Check formatting
run: elm-format src --validate
smoke_tests:
name: Run the Smoke Tests
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/elm-representer
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Tests in Docker
run: bin/run-tests-in-docker.sh